From 7abc9fa8b7d9788681f7eb582bde23eb984f5a8c Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 16 Dec 2014 18:38:40 +0000 Subject: [PATCH] Added docs for --invisibles also reordered command line docs jump list to match order listed when getting usage from Catch itself. --- docs/command-line.md | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/docs/command-line.md b/docs/command-line.md index 7e412f38..d1d4bd4a 100644 --- a/docs/command-line.md +++ b/docs/command-line.md @@ -2,15 +2,18 @@ Catch works quite nicely without any command line options at all - but for those Click one of the followings links to take you straight to that option - or scroll on to browse the available options. ` ...`
- ` -r, --reporter`
- ` -b, --break`
- ` -s, --success`
- ` -a, --abort`
- ` -l, --list`
+ ` -h, -?, --help`
+ ` -l, --list-tests`
` -t, --list-tags`
- ` -o, --out`
- ` -n, --name`
+ ` -s, --success`
+ ` -b, --break`
` -e, --nothrow`
+ ` -i, --invisibles`
+ ` -o, --out`
+ ` -r, --reporter`
+ ` -n, --name`
+ ` -a, --abort`
+ ` -x, --abortx`
` -w, --warn`
` -d, --durations`
` -f, --input-file`
@@ -24,7 +27,6 @@ Click one of the followings links to take you straight to that option - or scrol
- ` -h, -?, --help`
@@ -145,6 +147,13 @@ Sometimes exceptions are expected outside of one of the assertions that tests fo 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. + +## Make whitespace visible +
-i, --invisibles
+ +If a string comparison fails due to differences in whitespace - especially leading or trailing whitespace - it can be hard to see what's going on. +This option transforms tabs and newline characters into ```\t``` and ```\n``` respectively when printing. + ## Warnings
-w, --warn <warning name>