Rebased following Clara changes

This commit is contained in:
Phil Nash 2017-06-12 23:13:27 +01:00
parent 1c223b63ba
commit c41a45e79c
4 changed files with 202 additions and 159 deletions

View File

@ -1003,5 +1003,5 @@ with expansion:
=============================================================================== ===============================================================================
test cases: 171 | 121 passed | 46 failed | 4 failed as expected test cases: 171 | 121 passed | 46 failed | 4 failed as expected
assertions: 843 | 728 passed | 94 failed | 21 failed as expected assertions: 844 | 729 passed | 94 failed | 21 failed as expected

View File

@ -4773,7 +4773,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parser.parseInto( std::vector<std::string>(), config ) ) CHECK( result )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -4790,7 +4792,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( result )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -4832,7 +4836,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( result )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -4856,7 +4862,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( result )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -4880,7 +4888,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( result )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -4904,7 +4914,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "-r", "console"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -4922,7 +4934,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "-r", "xml"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -4940,7 +4954,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "-r", "xml", "-r", "junit"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -4970,7 +4986,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "--reporter", "junit"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -4988,7 +5006,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "-b"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5006,7 +5026,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "--break"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5024,7 +5046,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "-a"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5042,7 +5066,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "-x", "2"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5050,21 +5076,6 @@ PASSED:
with expansion: with expansion:
2 == 2 2 == 2
-------------------------------------------------------------------------------
Process can be configured on command line
abort
-x must be greater than zero
-------------------------------------------------------------------------------
TestMain.cpp:<line number>
...............................................................................
TestMain.cpp:<line number>:
PASSED:
REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ), Contains( "greater than zero" ) )
with expansion:
"Value after -x or --abortAfter must be greater than zero
- while parsing: (-x, --abortx <no. failures>)" contains: "greater than zero"
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Process can be configured on command line Process can be configured on command line
abort abort
@ -5075,10 +5086,16 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ), Contains( "-x" ) ) CHECK( !result )
with expansion: with expansion:
"Unable to convert oops to destination type true
- while parsing: (-x, --abortx <no. failures>)" contains: "-x"
TestMain.cpp:<line number>:
PASSED:
REQUIRE_THAT( result.errorMessage(), Contains("convert") && Contains("oops") )
with expansion:
"Unable to convert 'oops' to destination type" ( contains: "convert" and
contains: "oops" )
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Process can be configured on command line Process can be configured on command line
@ -5090,13 +5107,15 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "-e"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
REQUIRE( config.noThrow == true ) REQUIRE( config.noThrow )
with expansion: with expansion:
true == true true
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Process can be configured on command line Process can be configured on command line
@ -5108,13 +5127,15 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "--nothrow"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
REQUIRE( config.noThrow == true ) REQUIRE( config.noThrow )
with expansion: with expansion:
true == true true
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Process can be configured on command line Process can be configured on command line
@ -5126,7 +5147,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "-o", "filename.ext"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5144,7 +5167,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "--out", "filename.ext"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5162,7 +5187,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "-abe"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5192,7 +5219,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5210,7 +5239,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "--use-colour", "auto"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5228,7 +5259,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "--use-colour", "yes"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5246,7 +5279,9 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
CHECK_NOTHROW( parseIntoConfig( argv, config ) ) CHECK( cli.parse({"test", "--use-colour", "no"}) )
with expansion:
{?}
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
@ -5264,7 +5299,16 @@ TestMain.cpp:<line number>
TestMain.cpp:<line number>: TestMain.cpp:<line number>:
PASSED: PASSED:
REQUIRE_THROWS_WITH( parseIntoConfig( argv, config ), Contains( "colour mode must be one of" ) ) CHECK( !result )
with expansion:
true
TestMain.cpp:<line number>:
PASSED:
CHECK_THAT( result.errorMessage(), Contains( "colour mode must be one of" ) )
with expansion:
"colour mode must be one of: auto, yes or no. 'wrong' not recognised"
contains: "colour mode must be one of"
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Reconstruction should be based on stringification: #914 Reconstruction should be based on stringification: #914
@ -8309,5 +8353,5 @@ PASSED:
=============================================================================== ===============================================================================
test cases: 171 | 120 passed | 47 failed | 4 failed as expected test cases: 171 | 120 passed | 47 failed | 4 failed as expected
assertions: 845 | 728 passed | 96 failed | 21 failed as expected assertions: 846 | 729 passed | 96 failed | 21 failed as expected

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<testsuitesspanner> <testsuitesspanner>
<testsuite name="<exe-name>" errors="15" failures="82" tests="846" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}"> <testsuite name="<exe-name>" errors="15" failures="82" tests="847" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
<testcase classname="<exe-name>.global" name="# A test name that starts with a #" time="{duration}"/> <testcase classname="<exe-name>.global" name="# A test name that starts with a #" time="{duration}"/>
<testcase classname="<exe-name>.global" name="#748 - captures with unexpected exceptions/outside assertions" time="{duration}"> <testcase classname="<exe-name>.global" name="#748 - captures with unexpected exceptions/outside assertions" time="{duration}">
<error type="TEST_CASE"> <error type="TEST_CASE">
@ -458,7 +458,6 @@ MessageTests.cpp:<line number>
<testcase classname="<exe-name>.global" name="Process can be configured on command line/debugger/--break" time="{duration}"/> <testcase classname="<exe-name>.global" name="Process can be configured on command line/debugger/--break" time="{duration}"/>
<testcase classname="<exe-name>.global" name="Process can be configured on command line/abort/-a aborts after first failure" time="{duration}"/> <testcase classname="<exe-name>.global" name="Process can be configured on command line/abort/-a aborts after first failure" time="{duration}"/>
<testcase classname="<exe-name>.global" name="Process can be configured on command line/abort/-x 2 aborts after two failures" time="{duration}"/> <testcase classname="<exe-name>.global" name="Process can be configured on command line/abort/-x 2 aborts after two failures" time="{duration}"/>
<testcase classname="<exe-name>.global" name="Process can be configured on command line/abort/-x must be greater than zero" time="{duration}"/>
<testcase classname="<exe-name>.global" name="Process can be configured on command line/abort/-x must be numeric" time="{duration}"/> <testcase classname="<exe-name>.global" name="Process can be configured on command line/abort/-x must be numeric" time="{duration}"/>
<testcase classname="<exe-name>.global" name="Process can be configured on command line/nothrow/-e" time="{duration}"/> <testcase classname="<exe-name>.global" name="Process can be configured on command line/nothrow/-e" time="{duration}"/>
<testcase classname="<exe-name>.global" name="Process can be configured on command line/nothrow/--nothrow" time="{duration}"/> <testcase classname="<exe-name>.global" name="Process can be configured on command line/nothrow/--nothrow" time="{duration}"/>

View File

@ -5325,12 +5325,12 @@ re>"
</TestCase> </TestCase>
<TestCase name="Process can be configured on command line" tags="[command-line][config]" filename="projects/<exe-name>/TestMain.cpp" > <TestCase name="Process can be configured on command line" tags="[command-line][config]" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="empty args don't cause a crash" filename="projects/<exe-name>/TestMain.cpp" > <Section name="empty args don't cause a crash" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parser.parseInto( std::vector&lt;std::string>(), config ) result
</Original> </Original>
<Expanded> <Expanded>
parser.parseInto( std::vector&lt;std::string>(), config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
@ -5344,12 +5344,12 @@ re>"
<OverallResults successes="2" failures="0" expectedFailures="0"/> <OverallResults successes="2" failures="0" expectedFailures="0"/>
</Section> </Section>
<Section name="default - no arguments" filename="projects/<exe-name>/TestMain.cpp" > <Section name="default - no arguments" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) result
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
@ -5396,12 +5396,12 @@ re>"
</Section> </Section>
<Section name="test lists" filename="projects/<exe-name>/TestMain.cpp" > <Section name="test lists" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="1 test" description="Specify one test case using" filename="projects/<exe-name>/TestMain.cpp" > <Section name="1 test" description="Specify one test case using" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) result
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5426,12 +5426,12 @@ re>"
</Section> </Section>
<Section name="test lists" filename="projects/<exe-name>/TestMain.cpp" > <Section name="test lists" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="Specify one test case exclusion using exclude:" filename="projects/<exe-name>/TestMain.cpp" > <Section name="Specify one test case exclusion using exclude:" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) result
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5456,12 +5456,12 @@ re>"
</Section> </Section>
<Section name="test lists" filename="projects/<exe-name>/TestMain.cpp" > <Section name="test lists" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="Specify one test case exclusion using ~" filename="projects/<exe-name>/TestMain.cpp" > <Section name="Specify one test case exclusion using ~" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) result
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5486,12 +5486,12 @@ re>"
</Section> </Section>
<Section name="reporter" filename="projects/<exe-name>/TestMain.cpp" > <Section name="reporter" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="-r/console" filename="projects/<exe-name>/TestMain.cpp" > <Section name="-r/console" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "-r", "console"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5508,12 +5508,12 @@ re>"
</Section> </Section>
<Section name="reporter" filename="projects/<exe-name>/TestMain.cpp" > <Section name="reporter" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="-r/xml" filename="projects/<exe-name>/TestMain.cpp" > <Section name="-r/xml" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "-r", "xml"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5530,12 +5530,12 @@ re>"
</Section> </Section>
<Section name="reporter" filename="projects/<exe-name>/TestMain.cpp" > <Section name="reporter" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="-r xml and junit" filename="projects/<exe-name>/TestMain.cpp" > <Section name="-r xml and junit" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "-r", "xml", "-r", "junit"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5568,12 +5568,12 @@ re>"
</Section> </Section>
<Section name="reporter" filename="projects/<exe-name>/TestMain.cpp" > <Section name="reporter" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="--reporter/junit" filename="projects/<exe-name>/TestMain.cpp" > <Section name="--reporter/junit" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "--reporter", "junit"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5590,12 +5590,12 @@ re>"
</Section> </Section>
<Section name="debugger" filename="projects/<exe-name>/TestMain.cpp" > <Section name="debugger" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="-b" filename="projects/<exe-name>/TestMain.cpp" > <Section name="-b" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "-b"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5612,12 +5612,12 @@ re>"
</Section> </Section>
<Section name="debugger" filename="projects/<exe-name>/TestMain.cpp" > <Section name="debugger" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="--break" filename="projects/<exe-name>/TestMain.cpp" > <Section name="--break" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "--break"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5634,12 +5634,12 @@ re>"
</Section> </Section>
<Section name="abort" filename="projects/<exe-name>/TestMain.cpp" > <Section name="abort" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="-a aborts after first failure" filename="projects/<exe-name>/TestMain.cpp" > <Section name="-a aborts after first failure" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "-a"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5656,12 +5656,12 @@ re>"
</Section> </Section>
<Section name="abort" filename="projects/<exe-name>/TestMain.cpp" > <Section name="abort" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="-x 2 aborts after two failures" filename="projects/<exe-name>/TestMain.cpp" > <Section name="-x 2 aborts after two failures" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "-x", "2"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5676,52 +5676,44 @@ re>"
</Section> </Section>
<OverallResults successes="2" failures="0" expectedFailures="0"/> <OverallResults successes="2" failures="0" expectedFailures="0"/>
</Section> </Section>
<Section name="abort" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="-x must be greater than zero" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/TestMain.cpp" >
<Original>
parseIntoConfigAndReturnError( argv, config ), Contains( "greater than zero" )
</Original>
<Expanded>
"Value after -x or --abortAfter must be greater than zero
- while parsing: (-x, --abortx &lt;no. failures>)" contains: "greater than zero"
</Expanded>
</Expression>
<OverallResults successes="1" failures="0" expectedFailures="0"/>
</Section>
<OverallResults successes="1" failures="0" expectedFailures="0"/>
</Section>
<Section name="abort" filename="projects/<exe-name>/TestMain.cpp" > <Section name="abort" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="-x must be numeric" filename="projects/<exe-name>/TestMain.cpp" > <Section name="-x must be numeric" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfigAndReturnError( argv, config ), Contains( "-x" ) !result
</Original> </Original>
<Expanded> <Expanded>
"Unable to convert oops to destination type true
- while parsing: (-x, --abortx &lt;no. failures>)" contains: "-x"
</Expanded> </Expanded>
</Expression> </Expression>
<OverallResults successes="1" failures="0" expectedFailures="0"/> <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/TestMain.cpp" >
<Original>
result.errorMessage(), Contains("convert") &amp;&amp; Contains("oops")
</Original>
<Expanded>
"Unable to convert 'oops' to destination type" ( contains: "convert" and contains: "oops" )
</Expanded>
</Expression>
<OverallResults successes="2" failures="0" expectedFailures="0"/>
</Section> </Section>
<OverallResults successes="1" failures="0" expectedFailures="0"/> <OverallResults successes="2" failures="0" expectedFailures="0"/>
</Section> </Section>
<Section name="nothrow" filename="projects/<exe-name>/TestMain.cpp" > <Section name="nothrow" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="-e" filename="projects/<exe-name>/TestMain.cpp" > <Section name="-e" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "-e"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
config.noThrow == true config.noThrow
</Original> </Original>
<Expanded> <Expanded>
true == true true
</Expanded> </Expanded>
</Expression> </Expression>
<OverallResults successes="2" failures="0" expectedFailures="0"/> <OverallResults successes="2" failures="0" expectedFailures="0"/>
@ -5730,20 +5722,20 @@ re>"
</Section> </Section>
<Section name="nothrow" filename="projects/<exe-name>/TestMain.cpp" > <Section name="nothrow" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="--nothrow" filename="projects/<exe-name>/TestMain.cpp" > <Section name="--nothrow" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "--nothrow"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
config.noThrow == true config.noThrow
</Original> </Original>
<Expanded> <Expanded>
true == true true
</Expanded> </Expanded>
</Expression> </Expression>
<OverallResults successes="2" failures="0" expectedFailures="0"/> <OverallResults successes="2" failures="0" expectedFailures="0"/>
@ -5752,12 +5744,12 @@ re>"
</Section> </Section>
<Section name="output filename" filename="projects/<exe-name>/TestMain.cpp" > <Section name="output filename" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="-o filename" filename="projects/<exe-name>/TestMain.cpp" > <Section name="-o filename" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "-o", "filename.ext"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5774,12 +5766,12 @@ re>"
</Section> </Section>
<Section name="output filename" filename="projects/<exe-name>/TestMain.cpp" > <Section name="output filename" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="--out" filename="projects/<exe-name>/TestMain.cpp" > <Section name="--out" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "--out", "filename.ext"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5796,12 +5788,12 @@ re>"
</Section> </Section>
<Section name="combinations" filename="projects/<exe-name>/TestMain.cpp" > <Section name="combinations" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="Single character flags can be combined" filename="projects/<exe-name>/TestMain.cpp" > <Section name="Single character flags can be combined" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "-abe"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
@ -5834,12 +5826,12 @@ re>"
</Section> </Section>
<Section name="use-colour" filename="projects/<exe-name>/TestMain.cpp" > <Section name="use-colour" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="without option" filename="projects/<exe-name>/TestMain.cpp" > <Section name="without option" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5856,12 +5848,12 @@ re>"
</Section> </Section>
<Section name="use-colour" filename="projects/<exe-name>/TestMain.cpp" > <Section name="use-colour" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="auto" filename="projects/<exe-name>/TestMain.cpp" > <Section name="auto" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "--use-colour", "auto"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5878,12 +5870,12 @@ re>"
</Section> </Section>
<Section name="use-colour" filename="projects/<exe-name>/TestMain.cpp" > <Section name="use-colour" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="yes" filename="projects/<exe-name>/TestMain.cpp" > <Section name="yes" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "--use-colour", "yes"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5900,12 +5892,12 @@ re>"
</Section> </Section>
<Section name="use-colour" filename="projects/<exe-name>/TestMain.cpp" > <Section name="use-colour" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="no" filename="projects/<exe-name>/TestMain.cpp" > <Section name="no" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ) cli.parse({"test", "--use-colour", "no"})
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ) {?}
</Expanded> </Expanded>
</Expression> </Expression>
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" >
@ -5922,17 +5914,25 @@ re>"
</Section> </Section>
<Section name="use-colour" filename="projects/<exe-name>/TestMain.cpp" > <Section name="use-colour" filename="projects/<exe-name>/TestMain.cpp" >
<Section name="error" filename="projects/<exe-name>/TestMain.cpp" > <Section name="error" filename="projects/<exe-name>/TestMain.cpp" >
<Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/TestMain.cpp" > <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" >
<Original> <Original>
parseIntoConfig( argv, config ), Contains( "colour mode must be one of" ) !result
</Original> </Original>
<Expanded> <Expanded>
parseIntoConfig( argv, config ), Contains( "colour mode must be one of" ) true
</Expanded> </Expanded>
</Expression> </Expression>
<OverallResults successes="1" failures="0" expectedFailures="0"/> <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/TestMain.cpp" >
<Original>
result.errorMessage(), Contains( "colour mode must be one of" )
</Original>
<Expanded>
"colour mode must be one of: auto, yes or no. 'wrong' not recognised" contains: "colour mode must be one of"
</Expanded>
</Expression>
<OverallResults successes="2" failures="0" expectedFailures="0"/>
</Section> </Section>
<OverallResults successes="1" failures="0" expectedFailures="0"/> <OverallResults successes="2" failures="0" expectedFailures="0"/>
</Section> </Section>
<OverallResult success="true"/> <OverallResult success="true"/>
</TestCase> </TestCase>
@ -9166,7 +9166,7 @@ spanner <OverallResult success="true"/>
</Section> </Section>
<OverallResult success="true"/> <OverallResult success="true"/>
</TestCase> </TestCase>
<OverallResults successes="728" failures="97" expectedFailures="21"/> <OverallResults successes="729" failures="97" expectedFailures="21"/>
</Group> </Group>
<OverallResults successes="728" failures="96" expectedFailures="21"/> <OverallResults successes="729" failures="96" expectedFailures="21"/>
</Catch> </Catch>