Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New behat phpunit options #254

Merged
merged 3 commits into from
Nov 14, 2023
Merged

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Nov 4, 2023

This PR has 3 commits:

  1. Modify DummyExecute in order to make the last command executed available for testing purposes.
  2. Add the --tags and --name Behat options available (Add support for --tags and --name to behat runs #246).
  3. Add the --configure, --testsuite and --fillter PHPUnit options available (Add support for --testsuite, --config, --filter to phpunit runs #100).

I've added 2 TODOs in the code about some tests that, IMO, are wrong. They are pre-existing and won't be analysed or fixed here.

Ciao :-)

Copy link

codecov bot commented Nov 4, 2023

Codecov Report

Merging #254 (632a21f) into master (d313896) will increase coverage by 0.43%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #254      +/-   ##
============================================
+ Coverage     84.63%   85.07%   +0.43%     
- Complexity      694      702       +8     
============================================
  Files            74       74              
  Lines          2148     2184      +36     
============================================
+ Hits           1818     1858      +40     
+ Misses          330      326       -4     
Files Coverage Δ
src/Command/BehatCommand.php 37.38% <100.00%> (+3.71%) ⬆️
src/Command/PHPUnitCommand.php 58.10% <100.00%> (+14.04%) ⬆️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@stronk7
Copy link
Member Author

stronk7 commented Nov 4, 2023

IMPORTANT NOTE: This has to be merged after #255 (it's built on top of it).

That way we'll be able, in all the test using DummyExecute, to
perform assertions against the commands executed, so we can
cover options logic and so on.
Covered by tests that use intensively the new ->lastCmd
introduced by the previous commit.

Also, added a TODO about something, pre-existing, that is
an incorrect unit tests, some day will be investigated. Not today.

Fixes moodlehq#246
Covered by tests that use intensively the new ->lastCmd
introduced a couple of commits ago.

Also, added a TODO about something, pre-existing, that is
an incorrect unit tests, some day will be investigated. Not today.

Fixes moodlehq#100
@stronk7
Copy link
Member Author

stronk7 commented Nov 10, 2023

This has been rebased on top of #255 , already merged.

@stronk7
Copy link
Member Author

stronk7 commented Nov 14, 2023

Self-merging, towards a release happening soon...

@stronk7 stronk7 merged commit 693a638 into moodlehq:master Nov 14, 2023
19 checks passed
@stronk7 stronk7 deleted the new_behat_phpunit_options branch November 30, 2023 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant