From 840b99af92081b1ac8aebc553e177f4cb6833418 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 16 Dec 2014 18:13:29 +0000 Subject: [PATCH] Added docs for --input-file (somehow missing from previous commit) --- docs/command-line.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/command-line.md b/docs/command-line.md index f9bf27eb..e863e198 100644 --- a/docs/command-line.md +++ b/docs/command-line.md @@ -159,11 +159,19 @@ The ony available warning, presently, is ```NoAssertions```. This warning fails When set to ```yes``` Catch will report the duration of each test case, in milliseconds. Note that it does this regardless of whether a test case passes or fails. Note, also, the certain reporters (e.g. Junit) always report test case durations regardless of this option being set or not. + +## Load test names to run from a file +
-f, --input-file <filename>
+ +Provide the name of a file that contains a list of test case names - one per line. Blank lines are skipped and anything after the comment character, ```#```, is ignored. + +A useful way to generate an initial instance of this file is to use the list-test-names-only option. This can then be manually curated to specify a specific subset of tests - or in a specific order. + ## Just test names
--list-test-names-only
-This option lists all available tests in a non-indented form, one on each line. This makes it ideal for saving to a file and feeding back into the ```-f``` or ```--input-file``` option. +This option lists all available tests in a non-indented form, one on each line. This makes it ideal for saving to a file and feeding back into the ```-f``` or ```--input-file``` option.