mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Remove short flags from --list-tests and --list-tags
This commit is contained in:
parent
0d1bdea69f
commit
eeee4a49af
@ -37,8 +37,6 @@ Click one of the following links to take you straight to that option - or scroll
|
|||||||
|
|
||||||
<a href="#specifying-which-tests-to-run"> ` <test-spec> ...`</a><br />
|
<a href="#specifying-which-tests-to-run"> ` <test-spec> ...`</a><br />
|
||||||
<a href="#usage"> ` -h, -?, --help`</a><br />
|
<a href="#usage"> ` -h, -?, --help`</a><br />
|
||||||
<a href="#listing-available-tests-tags-or-reporters"> ` -l, --list-tests`</a><br />
|
|
||||||
<a href="#listing-available-tests-tags-or-reporters"> ` -t, --list-tags`</a><br />
|
|
||||||
<a href="#showing-results-for-successful-tests"> ` -s, --success`</a><br />
|
<a href="#showing-results-for-successful-tests"> ` -s, --success`</a><br />
|
||||||
<a href="#breaking-into-the-debugger"> ` -b, --break`</a><br />
|
<a href="#breaking-into-the-debugger"> ` -b, --break`</a><br />
|
||||||
<a href="#eliding-assertions-expected-to-throw"> ` -e, --nothrow`</a><br />
|
<a href="#eliding-assertions-expected-to-throw"> ` -e, --nothrow`</a><br />
|
||||||
@ -57,6 +55,8 @@ Click one of the following links to take you straight to that option - or scroll
|
|||||||
|
|
||||||
</br>
|
</br>
|
||||||
|
|
||||||
|
<a href="#listing-available-tests-tags-or-reporters"> ` --list-tests`</a><br />
|
||||||
|
<a href="#listing-available-tests-tags-or-reporters"> ` --list-tags`</a><br />
|
||||||
<a href="#listing-available-tests-tags-or-reporters"> ` --list-reporters`</a><br />
|
<a href="#listing-available-tests-tags-or-reporters"> ` --list-reporters`</a><br />
|
||||||
<a href="#order"> ` --order`</a><br />
|
<a href="#order"> ` --order`</a><br />
|
||||||
<a href="#rng-seed"> ` --rng-seed`</a><br />
|
<a href="#rng-seed"> ` --rng-seed`</a><br />
|
||||||
@ -175,17 +175,24 @@ Sometimes this results in a flood of failure messages and you'd rather just see
|
|||||||
|
|
||||||
<a id="listing-available-tests-tags-or-reporters"></a>
|
<a id="listing-available-tests-tags-or-reporters"></a>
|
||||||
## Listing available tests, tags or reporters
|
## Listing available tests, tags or reporters
|
||||||
<pre>-l, --list-tests
|
```
|
||||||
-t, --list-tags
|
--list-tests
|
||||||
|
--list-tags
|
||||||
--list-reporters
|
--list-reporters
|
||||||
</pre>
|
```
|
||||||
|
|
||||||
```-l``` or ```--list-tests``` will list all registered tests, along with any tags.
|
> The `--list*` options became customizable through reporters in Catch2 X.Y.Z
|
||||||
If one or more test-specs have been supplied too then only the matching tests will be listed.
|
|
||||||
|
|
||||||
```-t``` or ```--list-tags``` lists all available tags, along with the number of test cases they match. Again, supplying test specs limits the tags that match.
|
`--list-tests` lists all registered tests matching specified test spec.
|
||||||
|
Usually this listing also includes tags, and potentially also other
|
||||||
|
information, like source location, based on verbosity and reporter's design.
|
||||||
|
|
||||||
|
`--list-tags` lists all tags from registered tests matching specified test
|
||||||
|
spec. Usually this also includes number of tests cases they match and
|
||||||
|
similar information.
|
||||||
|
|
||||||
|
`--list-reporters` lists all available reporters and their descriptions.
|
||||||
|
|
||||||
```--list-reporters``` lists the available reporters.
|
|
||||||
|
|
||||||
<a id="sending-output-to-a-file"></a>
|
<a id="sending-output-to-a-file"></a>
|
||||||
## Sending output to a file
|
## Sending output to a file
|
||||||
|
@ -133,6 +133,10 @@ new design.
|
|||||||
* New pair of events were added
|
* New pair of events were added
|
||||||
* One obsolete event was removed
|
* One obsolete event was removed
|
||||||
* Catch2 generates a random seed if one hasn't been specified by the user
|
* Catch2 generates a random seed if one hasn't been specified by the user
|
||||||
|
* The short flag for `--list-tests`, `-l`, has been removed.
|
||||||
|
* This is not a commonly used flag and does not need to use up valuable single-letter space.
|
||||||
|
* The short flag for `--list-tags`, `-t`, has been removed.
|
||||||
|
* This is not a commonly used flag and does not need to use up valuable single-letter space.
|
||||||
|
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
|
@ -242,12 +242,6 @@ namespace Catch {
|
|||||||
auto cli
|
auto cli
|
||||||
= ExeName( config.processName )
|
= ExeName( config.processName )
|
||||||
| Help( config.showHelp )
|
| Help( config.showHelp )
|
||||||
| Opt( config.listTests )
|
|
||||||
["-l"]["--list-tests"]
|
|
||||||
( "list all/matching test cases" )
|
|
||||||
| Opt( config.listTags )
|
|
||||||
["-t"]["--list-tags"]
|
|
||||||
( "list all/matching tags" )
|
|
||||||
| Opt( config.showSuccessfulTests )
|
| Opt( config.showSuccessfulTests )
|
||||||
["-s"]["--success"]
|
["-s"]["--success"]
|
||||||
( "include successful tests in output" )
|
( "include successful tests in output" )
|
||||||
@ -296,6 +290,12 @@ namespace Catch {
|
|||||||
| Opt( setVerbosity, "quiet|normal|high" )
|
| Opt( setVerbosity, "quiet|normal|high" )
|
||||||
["-v"]["--verbosity"]
|
["-v"]["--verbosity"]
|
||||||
( "set output verbosity" )
|
( "set output verbosity" )
|
||||||
|
| Opt( config.listTests )
|
||||||
|
["--list-tests"]
|
||||||
|
( "list all/matching test cases" )
|
||||||
|
| Opt( config.listTags )
|
||||||
|
["--list-tags"]
|
||||||
|
( "list all/matching tags" )
|
||||||
| Opt( config.listReporters )
|
| Opt( config.listReporters )
|
||||||
["--list-reporters"]
|
["--list-reporters"]
|
||||||
( "list all reporters" )
|
( "list all reporters" )
|
||||||
|
Loading…
Reference in New Issue
Block a user