Skip to content

Commit

Permalink
Closes #5707
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 18, 2024
1 parent 828c5ab commit bd8f375
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog-10.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes of the PHPUnit 10.5 release series are documented in this fi

### Fixed

* [#5707](https://github.com/sebastianbergmann/phpunit/issues/5707): `--fail-on-empty-test-suite` CLI option is not documented in `--help` output
* Resource usage information is printed when the `--debug` CLI option is used

## [10.5.10] - 2024-02-04
Expand Down
1 change: 1 addition & 0 deletions src/TextUI/Help.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ private function elements(): array
['arg' => '--stop-on-incomplete', 'desc' => 'Stop after first incomplete test'],
['spacer' => ''],

['arg' => '--fail-on-empty-test-suite', 'desc' => 'Signal failure using shell exit code when no tests were run'],
['arg' => '--fail-on-warning', 'desc' => 'Signal failure using shell exit code when a warning was triggered'],
['arg' => '--fail-on-risky', 'desc' => 'Signal failure using shell exit code when a test was considered risky'],
['arg' => '--fail-on-deprecation', 'desc' => 'Signal failure using shell exit code when a deprecation was triggered'],
Expand Down
2 changes: 2 additions & 0 deletions tests/end-to-end/_files/output-cli-help-color.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
--stop-on-skipped  Stop after first skipped test
--stop-on-incomplete  Stop after first incomplete test

--fail-on-empty-test-suite  Signal failure using shell exit code when no
tests were run
--fail-on-warning  Signal failure using shell exit code when a
warning was triggered
--fail-on-risky  Signal failure using shell exit code when a
Expand Down
1 change: 1 addition & 0 deletions tests/end-to-end/_files/output-cli-usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Execution:
--stop-on-skipped Stop after first skipped test
--stop-on-incomplete Stop after first incomplete test

--fail-on-empty-test-suite Signal failure using shell exit code when no tests were run
--fail-on-warning Signal failure using shell exit code when a warning was triggered
--fail-on-risky Signal failure using shell exit code when a test was considered risky
--fail-on-deprecation Signal failure using shell exit code when a deprecation was triggered
Expand Down

0 comments on commit bd8f375

Please sign in to comment.