diff --git a/docs/command-line.md b/docs/command-line.md index f5acd266..b94dc86f 100644 --- a/docs/command-line.md +++ b/docs/command-line.md @@ -1,20 +1,20 @@ Catch works quite nicely without any command line options at all - but for those times when you want greater control the following options are available. Note that options are described according to the following pattern: - ` ...`
- ` -r, --reporter`
- ` -b, --break`
- ` -s, --success`
- ` -a, --abort`
- ` -l, --list`
- ` -o, --out`
- ` -n, --name`
- ` -e, --nothrow`
- ` -w, --warn`
-` -d, --durations`
- ` -h, -?, --help`
+ ` ...`
+ ` -r, --reporter`
+ ` -b, --break`
+ ` -s, --success`
+ ` -a, --abort`
+ ` -l, --list`
+ ` -o, --out`
+ ` -n, --name`
+ ` -e, --nothrow`
+ ` -w, --warn`
+ ` -d, --durations`
+ ` -h, -?, --help`
- + ## Specifying which tests to run
<test-spec> ...
@@ -51,7 +51,7 @@ A series of tags form an AND expression wheras a comma-separated sequence forms This matches all tests tagged `[one]` and `[two]`, as well as all tests tagged `[three]` - + ## Choosing a reporter to use
-r, --reporter <reporter>
@@ -66,21 +66,21 @@ The bundled reporters are: The JUnit reporter is an xml format that follows the structure of the JUnit XML Report ANT task, as consumed by a number of third-party tools, including Continuous Integration servers such as Hudson. If not otherwise needed, the standard XML reporter is preferred as this is a streaming reporter, whereas the Junit reporter needs to hold all its results until the end so it can write the overall results into attributes of the root node. - + ## Breaking into the debugger
-b, --break
In some IDEs (currently XCode and Visual Studio) it is possible for Catch to break into the debugger on a test failure. This can be very helpful during debug sessions - especially when there is more than one path through a particular test. In addition to the command line option, ensure you have built your code with the DEBUG preprocessor symbol - + ## Showing results for successful tests
-s, --success
Usually you only want to see reporting for failed tests. Sometimes it's useful to see *all* the output (especially when you don't trust that that test you just added worked first time!). To see successul, as well as failing, test results just pass this option. Note that each reporter may treat this option differently. The Junit reporter, for example, logs all results regardless. - + ## Aborting after a certain number of failures
-a, --abort
 -x, --abortx [<failure threshold>]
@@ -91,7 +91,7 @@ If a ```CHECK``` assertion fails even the current test case is not aborted.
 
 Sometimes this results in a flood of failure messages and you'd rather just see the first few. Specifying ```-a``` or ```--abort``` on its own will abort the whole test run on the first failed assertion of any kind. Use ```-x``` or ```--abortx``` followed by a number to abort after that number of assertion failures.
 
-
+
 ## Listing available tests, tags or reporters
 
-l, --list-tests
 -t, --list-tags
@@ -105,20 +105,20 @@ If one or more test-specs have been supplied too then only the matching tests wi
 
 ```--list-reporters``` lists the available reporters.
 
-
+
 ## Sending output to a file
 
-o, --out <filename>
 
Use this option to send all output to a file. By default output is sent to stdout (note that uses of stdout and stderr *from within test cases* are redirected and included in the report - so even stderr will effectively end up on stdout). - + ## Naming a test run
-n, --name <name for test run>
If a name is supplied it will be used by the reporter to provide an overall name for the test run. This can be useful if you are sending to a file, for example, and need to distinguish different test runs - either from different Catch executables or runs of the same executable with different options. If not supplied the name is defaulted to the name of the executable. - + ## Eliding assertions expected to throw
-e, --nothrow
@@ -128,7 +128,7 @@ These can be a nuisance in certain debugging environments that may break when ex When running with this option any throw checking assertions are skipped so as not to contribute additional noise. Be careful if this affects the behaviour of subsequent tests. - + ## Warnings
-w, --warn <warning name>