diff --git a/include/internal/catch_commandline.hpp b/include/internal/catch_commandline.hpp index e0cccd70..3408c145 100644 --- a/include/internal/catch_commandline.hpp +++ b/include/internal/catch_commandline.hpp @@ -255,20 +255,8 @@ namespace Catch { } virtual void parseIntoConfig( Command const& cmd, ConfigData& config ) { - std::string groupName; - for( std::size_t i = 0; i < cmd.argsCount(); ++i ) { - if( i != 0 ) - groupName += " "; - groupName += cmd[i]; - } - TestCaseFilters filters( groupName ); - for( std::size_t i = 0; i < cmd.argsCount(); ++i ) { - if( startsWith( cmd[i], "[" ) || startsWith( cmd[i], "~[" ) ) - filters.addTags( cmd[i] ); - else - filters.addFilter( TestCaseFilter( cmd[i] ) ); - } - config.filters.push_back( filters ); + for( std::size_t i = 0; i < cmd.argsCount(); ++i ) + config.testsOrTags.push_back( cmd[i] ); } }; @@ -301,16 +289,8 @@ namespace Catch { } virtual void parseIntoConfig( Command const& cmd, ConfigData& config ) { - std::string groupName; - for( std::size_t i = 0; i < cmd.argsCount(); ++i ) { - if( i != 0 ) - groupName += " "; - groupName += cmd[i]; - } - TestCaseFilters filters( groupName ); for( std::size_t i = 0; i < cmd.argsCount(); ++i ) - filters.addTags( cmd[i] ); - config.filters.push_back( filters ); + config.testsOrTags.push_back( cmd[i] ); } }; diff --git a/include/internal/catch_config.hpp b/include/internal/catch_config.hpp index 9472a422..f29b58e1 100644 --- a/include/internal/catch_config.hpp +++ b/include/internal/catch_config.hpp @@ -65,7 +65,7 @@ namespace Catch { std::string outputFilename; std::string name; - std::vector filters; // !TBD strings + std::vector testsOrTags; std::string stream; }; @@ -84,9 +84,24 @@ namespace Catch { Config( ConfigData const& data ) : m_data( data ), - m_os( std::cout.rdbuf() ), - m_filters( data.filters ) - {} + m_os( std::cout.rdbuf() ) + { + std::string groupName; + for( std::size_t i = 0; i < data.testsOrTags.size(); ++i ) { + if( i != 0 ) + groupName += " "; + groupName += data.testsOrTags[i]; + } + TestCaseFilters filters( groupName ); + for( std::size_t i = 0; i < data.testsOrTags.size(); ++i ) { + std::string filter = data.testsOrTags[i]; + if( startsWith( filter, "[" ) || startsWith( filter, "~[" ) ) + filters.addTags( filter ); + else + filters.addFilter( TestCaseFilter( filter ) ); + } + m_filterSets.push_back( filters ); + } virtual ~Config() { m_os.rdbuf( std::cout.rdbuf() ); @@ -131,7 +146,7 @@ namespace Catch { void addTestSpec( std::string const& testSpec ) { TestCaseFilters filters( testSpec ); filters.addFilter( TestCaseFilter( testSpec ) ); - m_data.filters.push_back( filters ); + m_filterSets.push_back( filters ); } int abortAfter() const { @@ -139,7 +154,7 @@ namespace Catch { } std::vector const& filters() const { - return m_filters; + return m_filterSets; } // IConfig interface @@ -154,7 +169,7 @@ namespace Catch { Stream m_stream; mutable std::ostream m_os; - std::vector m_filters; + std::vector m_filterSets; }; diff --git a/projects/SelfTest/Baselines/approvedResults.txt b/projects/SelfTest/Baselines/approvedResults.txt index 08eda83f..0baba78f 100644 --- a/projects/SelfTest/Baselines/approvedResults.txt +++ b/projects/SelfTest/Baselines/approvedResults.txt @@ -3586,21 +3586,21 @@ TestMain.cpp:109: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:111: +TestMain.cpp:112: PASSED: - REQUIRE( config.filters.size() == 1 ) + REQUIRE( cfg.filters().size() == 1 ) with expansion: 1 == 1 -TestMain.cpp:112: +TestMain.cpp:113: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ) + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ) with expansion: false == false -TestMain.cpp:113: +TestMain.cpp:114: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) ) + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) ) with expansion: true @@ -3609,28 +3609,28 @@ selftest/parser/2 test lists -t/exclude:1 ------------------------------------------------------------------------------- -TestMain.cpp:115 +TestMain.cpp:116 ............................................................................... -TestMain.cpp:117: +TestMain.cpp:118: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:119: +TestMain.cpp:121: PASSED: - REQUIRE( config.filters.size() == 1 ) + REQUIRE( cfg.filters().size() == 1 ) with expansion: 1 == 1 -TestMain.cpp:120: +TestMain.cpp:122: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false ) + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false ) with expansion: false == false -TestMain.cpp:121: +TestMain.cpp:123: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ) + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ) with expansion: true @@ -3639,28 +3639,28 @@ selftest/parser/2 test lists --test/1 ------------------------------------------------------------------------------- -TestMain.cpp:124 +TestMain.cpp:126 ............................................................................... -TestMain.cpp:126: -PASSED: - CHECK_NOTHROW( parseIntoConfig( argv, config ) ) - TestMain.cpp:128: PASSED: - REQUIRE( config.filters.size() == 1 ) + CHECK_NOTHROW( parseIntoConfig( argv, config ) ) + +TestMain.cpp:131: +PASSED: + REQUIRE( cfg.filters().size() == 1 ) with expansion: 1 == 1 -TestMain.cpp:129: +TestMain.cpp:132: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ) + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ) with expansion: false == false -TestMain.cpp:130: +TestMain.cpp:133: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) ) + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) ) with expansion: true @@ -3669,28 +3669,28 @@ selftest/parser/2 test lists --test/exclude:1 ------------------------------------------------------------------------------- -TestMain.cpp:133 +TestMain.cpp:136 ............................................................................... -TestMain.cpp:135: -PASSED: - CHECK_NOTHROW( parseIntoConfig( argv, config ) ) - -TestMain.cpp:137: -PASSED: - REQUIRE( config.filters.size() == 1 ) -with expansion: - 1 == 1 - TestMain.cpp:138: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false ) + CHECK_NOTHROW( parseIntoConfig( argv, config ) ) + +TestMain.cpp:141: +PASSED: + REQUIRE( cfg.filters().size() == 1 ) +with expansion: + 1 == 1 + +TestMain.cpp:142: +PASSED: + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false ) with expansion: false == false -TestMain.cpp:139: +TestMain.cpp:143: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ) + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ) with expansion: true @@ -3699,28 +3699,28 @@ selftest/parser/2 test lists --test/exclude:2 ------------------------------------------------------------------------------- -TestMain.cpp:142 +TestMain.cpp:146 ............................................................................... -TestMain.cpp:144: -PASSED: - CHECK_NOTHROW( parseIntoConfig( argv, config ) ) - -TestMain.cpp:146: -PASSED: - REQUIRE( config.filters.size() == 1 ) -with expansion: - 1 == 1 - -TestMain.cpp:147: -PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false ) -with expansion: - false == false - TestMain.cpp:148: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ) + CHECK_NOTHROW( parseIntoConfig( argv, config ) ) + +TestMain.cpp:151: +PASSED: + REQUIRE( cfg.filters().size() == 1 ) +with expansion: + 1 == 1 + +TestMain.cpp:152: +PASSED: + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false ) +with expansion: + false == false + +TestMain.cpp:153: +PASSED: + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ) with expansion: true @@ -3729,34 +3729,34 @@ selftest/parser/2 test lists -t/2 ------------------------------------------------------------------------------- -TestMain.cpp:151 +TestMain.cpp:156 ............................................................................... -TestMain.cpp:153: -PASSED: - CHECK_NOTHROW( parseIntoConfig( argv, config ) ) - -TestMain.cpp:155: -PASSED: - REQUIRE( config.filters.size() == 1 ) -with expansion: - 1 == 1 - -TestMain.cpp:156: -PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ) -with expansion: - false == false - -TestMain.cpp:157: -PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) ) -with expansion: - true - TestMain.cpp:158: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test2" ) ) ) + CHECK_NOTHROW( parseIntoConfig( argv, config ) ) + +TestMain.cpp:161: +PASSED: + REQUIRE( cfg.filters().size() == 1 ) +with expansion: + 1 == 1 + +TestMain.cpp:162: +PASSED: + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ) +with expansion: + false == false + +TestMain.cpp:163: +PASSED: + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) ) +with expansion: + true + +TestMain.cpp:164: +PASSED: + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test2" ) ) ) with expansion: true @@ -3765,10 +3765,10 @@ selftest/parser/2 test lists -t/0 ------------------------------------------------------------------------------- -TestMain.cpp:161 +TestMain.cpp:167 ............................................................................... -TestMain.cpp:163: +TestMain.cpp:169: PASSED: REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ) Contains( "at least 1" ) ) with expansion: @@ -3780,14 +3780,14 @@ selftest/parser/2 reporter -r/console ------------------------------------------------------------------------------- -TestMain.cpp:168 +TestMain.cpp:174 ............................................................................... -TestMain.cpp:170: +TestMain.cpp:176: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:172: +TestMain.cpp:178: PASSED: REQUIRE( config.reporter == "console" ) with expansion: @@ -3798,14 +3798,14 @@ selftest/parser/2 reporter -r/xml ------------------------------------------------------------------------------- -TestMain.cpp:174 +TestMain.cpp:180 ............................................................................... -TestMain.cpp:176: +TestMain.cpp:182: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:178: +TestMain.cpp:184: PASSED: REQUIRE( config.reporter == "xml" ) with expansion: @@ -3816,14 +3816,14 @@ selftest/parser/2 reporter --reporter/junit ------------------------------------------------------------------------------- -TestMain.cpp:180 +TestMain.cpp:186 ............................................................................... -TestMain.cpp:182: +TestMain.cpp:188: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:184: +TestMain.cpp:190: PASSED: REQUIRE( config.reporter == "junit" ) with expansion: @@ -3834,10 +3834,10 @@ selftest/parser/2 reporter -r/error ------------------------------------------------------------------------------- -TestMain.cpp:186 +TestMain.cpp:192 ............................................................................... -TestMain.cpp:188: +TestMain.cpp:194: PASSED: REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ) Contains( "1 argument" ) ) with expansion: @@ -3849,14 +3849,14 @@ selftest/parser/2 debugger -b ------------------------------------------------------------------------------- -TestMain.cpp:193 +TestMain.cpp:199 ............................................................................... -TestMain.cpp:195: +TestMain.cpp:201: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:197: +TestMain.cpp:203: PASSED: REQUIRE( config.shouldDebugBreak == true ) with expansion: @@ -3867,14 +3867,14 @@ selftest/parser/2 debugger --break ------------------------------------------------------------------------------- -TestMain.cpp:199 +TestMain.cpp:205 ............................................................................... -TestMain.cpp:201: +TestMain.cpp:207: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:203: +TestMain.cpp:209: PASSED: REQUIRE( config.shouldDebugBreak ) with expansion: @@ -3885,10 +3885,10 @@ selftest/parser/2 debugger -b ------------------------------------------------------------------------------- -TestMain.cpp:205 +TestMain.cpp:211 ............................................................................... -TestMain.cpp:207: +TestMain.cpp:213: PASSED: REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ) Contains( "0 arguments" ) ) with expansion: @@ -3900,14 +3900,14 @@ selftest/parser/2 abort -a ------------------------------------------------------------------------------- -TestMain.cpp:212 +TestMain.cpp:218 ............................................................................... -TestMain.cpp:214: +TestMain.cpp:220: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:216: +TestMain.cpp:222: PASSED: REQUIRE( config.cutoff == 1 ) with expansion: @@ -3918,14 +3918,14 @@ selftest/parser/2 abort -a/2 ------------------------------------------------------------------------------- -TestMain.cpp:218 +TestMain.cpp:224 ............................................................................... -TestMain.cpp:220: +TestMain.cpp:226: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:222: +TestMain.cpp:228: PASSED: REQUIRE( config.cutoff == 2 ) with expansion: @@ -3936,10 +3936,10 @@ selftest/parser/2 abort -a/error/0 ------------------------------------------------------------------------------- -TestMain.cpp:224 +TestMain.cpp:230 ............................................................................... -TestMain.cpp:226: +TestMain.cpp:232: PASSED: REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) ) with expansion: @@ -3951,10 +3951,10 @@ selftest/parser/2 abort -a/error/non numeric ------------------------------------------------------------------------------- -TestMain.cpp:228 +TestMain.cpp:234 ............................................................................... -TestMain.cpp:230: +TestMain.cpp:236: PASSED: REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) ) with expansion: @@ -3966,10 +3966,10 @@ selftest/parser/2 abort -a/error/two args ------------------------------------------------------------------------------- -TestMain.cpp:232 +TestMain.cpp:238 ............................................................................... -TestMain.cpp:234: +TestMain.cpp:240: PASSED: REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ) Contains( "0 and 1 argument" ) ) with expansion: @@ -3981,24 +3981,6 @@ selftest/parser/2 nothrow -nt ------------------------------------------------------------------------------- -TestMain.cpp:239 -............................................................................... - -TestMain.cpp:241: -PASSED: - CHECK_NOTHROW( parseIntoConfig( argv, config ) ) - -TestMain.cpp:243: -PASSED: - REQUIRE( config.noThrow == true ) -with expansion: - true == true - -------------------------------------------------------------------------------- -selftest/parser/2 - nothrow - --nothrow -------------------------------------------------------------------------------- TestMain.cpp:245 ............................................................................... @@ -4014,23 +3996,41 @@ with expansion: ------------------------------------------------------------------------------- selftest/parser/2 - streams - -o filename + nothrow + --nothrow ------------------------------------------------------------------------------- -TestMain.cpp:254 +TestMain.cpp:251 ............................................................................... -TestMain.cpp:256: +TestMain.cpp:253: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:258: +TestMain.cpp:255: +PASSED: + REQUIRE( config.noThrow == true ) +with expansion: + true == true + +------------------------------------------------------------------------------- +selftest/parser/2 + streams + -o filename +------------------------------------------------------------------------------- +TestMain.cpp:260 +............................................................................... + +TestMain.cpp:262: +PASSED: + CHECK_NOTHROW( parseIntoConfig( argv, config ) ) + +TestMain.cpp:264: PASSED: REQUIRE( config.outputFilename == "filename.ext" ) with expansion: "filename.ext" == "filename.ext" -TestMain.cpp:259: +TestMain.cpp:265: PASSED: REQUIRE( config.stream.empty() ) with expansion: @@ -4041,20 +4041,20 @@ selftest/parser/2 streams -o %stdout ------------------------------------------------------------------------------- -TestMain.cpp:261 +TestMain.cpp:267 ............................................................................... -TestMain.cpp:263: +TestMain.cpp:269: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:265: +TestMain.cpp:271: PASSED: REQUIRE( config.stream == "stdout" ) with expansion: "stdout" == "stdout" -TestMain.cpp:266: +TestMain.cpp:272: PASSED: REQUIRE( config.outputFilename.empty() ) with expansion: @@ -4065,14 +4065,14 @@ selftest/parser/2 streams --out ------------------------------------------------------------------------------- -TestMain.cpp:268 +TestMain.cpp:274 ............................................................................... -TestMain.cpp:270: +TestMain.cpp:276: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:272: +TestMain.cpp:278: PASSED: REQUIRE( config.outputFilename == "filename.ext" ) with expansion: @@ -4083,26 +4083,26 @@ selftest/parser/2 combinations -a -b ------------------------------------------------------------------------------- -TestMain.cpp:277 +TestMain.cpp:283 ............................................................................... -TestMain.cpp:279: +TestMain.cpp:285: PASSED: CHECK_NOTHROW( parseIntoConfig( argv, config ) ) -TestMain.cpp:281: +TestMain.cpp:287: PASSED: CHECK( config.cutoff == 1 ) with expansion: 1 == 1 -TestMain.cpp:282: +TestMain.cpp:288: PASSED: CHECK( config.shouldDebugBreak ) with expansion: true -TestMain.cpp:283: +TestMain.cpp:289: PASSED: CHECK( config.noThrow == true ) with expansion: @@ -4111,40 +4111,40 @@ with expansion: ------------------------------------------------------------------------------- selftest/test filter ------------------------------------------------------------------------------- -TestMain.cpp:288 +TestMain.cpp:294 ............................................................................... -TestMain.cpp:292: +TestMain.cpp:298: PASSED: CHECK( matchAny.shouldInclude( fakeTestCase( "any" ) ) ) with expansion: true -TestMain.cpp:293: +TestMain.cpp:299: PASSED: CHECK( matchNone.shouldInclude( fakeTestCase( "any" ) ) == false ) with expansion: false == false -TestMain.cpp:298: +TestMain.cpp:304: PASSED: CHECK( matchHidden.shouldInclude( fakeTestCase( "any" ) ) == false ) with expansion: false == false -TestMain.cpp:299: +TestMain.cpp:305: PASSED: CHECK( matchNonHidden.shouldInclude( fakeTestCase( "any" ) ) ) with expansion: true -TestMain.cpp:301: +TestMain.cpp:307: PASSED: CHECK( matchHidden.shouldInclude( fakeTestCase( "./any" ) ) ) with expansion: true -TestMain.cpp:302: +TestMain.cpp:308: PASSED: CHECK( matchNonHidden.shouldInclude( fakeTestCase( "./any" ) ) == false ) with expansion: @@ -4153,28 +4153,28 @@ with expansion: ------------------------------------------------------------------------------- selftest/test filters ------------------------------------------------------------------------------- -TestMain.cpp:305 +TestMain.cpp:311 ............................................................................... -TestMain.cpp:313: +TestMain.cpp:319: PASSED: CHECK( matchHidden.shouldInclude( fakeTestCase( "./something" ) ) ) with expansion: true -TestMain.cpp:315: +TestMain.cpp:321: PASSED: CHECK( filters.shouldInclude( fakeTestCase( "any" ) ) == false ) with expansion: false == false -TestMain.cpp:316: +TestMain.cpp:322: PASSED: CHECK( filters.shouldInclude( fakeTestCase( "./something" ) ) ) with expansion: true -TestMain.cpp:317: +TestMain.cpp:323: PASSED: CHECK( filters.shouldInclude( fakeTestCase( "./anything" ) ) == false ) with expansion: @@ -4183,24 +4183,6 @@ with expansion: ------------------------------------------------------------------------------- selftest/filter/prefix wildcard ------------------------------------------------------------------------------- -TestMain.cpp:320 -............................................................................... - -TestMain.cpp:323: -PASSED: - CHECK( matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) ) -with expansion: - true - -TestMain.cpp:324: -PASSED: - CHECK( matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) == false ) -with expansion: - false == false - -------------------------------------------------------------------------------- -selftest/filter/wildcard at both ends -------------------------------------------------------------------------------- TestMain.cpp:326 ............................................................................... @@ -4211,18 +4193,36 @@ with expansion: true TestMain.cpp:330: +PASSED: + CHECK( matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) == false ) +with expansion: + false == false + +------------------------------------------------------------------------------- +selftest/filter/wildcard at both ends +------------------------------------------------------------------------------- +TestMain.cpp:332 +............................................................................... + +TestMain.cpp:335: +PASSED: + CHECK( matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) ) +with expansion: + true + +TestMain.cpp:336: PASSED: CHECK( matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) ) with expansion: true -TestMain.cpp:331: +TestMain.cpp:337: PASSED: CHECK( matchBadgers.shouldInclude( fakeTestCase( "badgers are big" ) ) ) with expansion: true -TestMain.cpp:332: +TestMain.cpp:338: PASSED: CHECK( matchBadgers.shouldInclude( fakeTestCase( "hedgehogs" ) ) == false ) with expansion: @@ -4231,28 +4231,28 @@ with expansion: ------------------------------------------------------------------------------- selftest/option parsers ------------------------------------------------------------------------------- -TestMain.cpp:341 +TestMain.cpp:347 ............................................................................... -TestMain.cpp:352: +TestMain.cpp:358: PASSED: CHECK_NOTHROW( opt.parseIntoConfig( parser, config ) ) -TestMain.cpp:354: +TestMain.cpp:361: PASSED: - REQUIRE( config.filters.size() == 1 ) + REQUIRE( cfg.filters().size() == 1 ) with expansion: 1 == 1 -TestMain.cpp:355: +TestMain.cpp:362: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ) + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ) with expansion: false == false -TestMain.cpp:356: +TestMain.cpp:363: PASSED: - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) ) + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) ) with expansion: true @@ -4260,52 +4260,52 @@ with expansion: selftest/tags one tag ------------------------------------------------------------------------------- -TestMain.cpp:367 +TestMain.cpp:374 ............................................................................... -TestMain.cpp:370: +TestMain.cpp:377: PASSED: CHECK( oneTag.getTestCaseInfo().description == "" ) with expansion: "" == "" -TestMain.cpp:371: +TestMain.cpp:378: PASSED: CHECK( oneTag.hasTag( "one" ) ) with expansion: true -TestMain.cpp:372: +TestMain.cpp:379: PASSED: CHECK( oneTag.getTags().size() == 1 ) with expansion: 1 == 1 -TestMain.cpp:374: +TestMain.cpp:381: PASSED: CHECK( oneTag.matchesTags( p1 ) == true ) with expansion: true == true -TestMain.cpp:375: +TestMain.cpp:382: PASSED: CHECK( oneTag.matchesTags( p2 ) == true ) with expansion: true == true -TestMain.cpp:376: +TestMain.cpp:383: PASSED: CHECK( oneTag.matchesTags( p3 ) == false ) with expansion: false == false -TestMain.cpp:377: +TestMain.cpp:384: PASSED: CHECK( oneTag.matchesTags( p4 ) == false ) with expansion: false == false -TestMain.cpp:378: +TestMain.cpp:385: PASSED: CHECK( oneTag.matchesTags( p5 ) == false ) with expansion: @@ -4315,70 +4315,70 @@ with expansion: selftest/tags two tags ------------------------------------------------------------------------------- -TestMain.cpp:381 +TestMain.cpp:388 ............................................................................... -TestMain.cpp:384: +TestMain.cpp:391: PASSED: CHECK( twoTags.getTestCaseInfo().description == "" ) with expansion: "" == "" -TestMain.cpp:385: +TestMain.cpp:392: PASSED: CHECK( twoTags.hasTag( "one" ) ) with expansion: true -TestMain.cpp:386: +TestMain.cpp:393: PASSED: CHECK( twoTags.hasTag( "two" ) ) with expansion: true -TestMain.cpp:387: +TestMain.cpp:394: PASSED: CHECK( twoTags.hasTag( "Two" ) ) with expansion: true -TestMain.cpp:388: +TestMain.cpp:395: PASSED: CHECK( twoTags.hasTag( "three" ) == false ) with expansion: false == false -TestMain.cpp:389: +TestMain.cpp:396: PASSED: CHECK( twoTags.getTags().size() == 2 ) with expansion: 2 == 2 -TestMain.cpp:391: +TestMain.cpp:398: PASSED: CHECK( twoTags.matchesTags( p1 ) == true ) with expansion: true == true -TestMain.cpp:392: +TestMain.cpp:399: PASSED: CHECK( twoTags.matchesTags( p2 ) == true ) with expansion: true == true -TestMain.cpp:393: +TestMain.cpp:400: PASSED: CHECK( twoTags.matchesTags( p3 ) == true ) with expansion: true == true -TestMain.cpp:394: +TestMain.cpp:401: PASSED: CHECK( twoTags.matchesTags( p4 ) == true ) with expansion: true == true -TestMain.cpp:395: +TestMain.cpp:402: PASSED: CHECK( twoTags.matchesTags( p5 ) == true ) with expansion: @@ -4388,28 +4388,28 @@ with expansion: selftest/tags one tag with characters either side ------------------------------------------------------------------------------- -TestMain.cpp:398 +TestMain.cpp:405 ............................................................................... -TestMain.cpp:401: +TestMain.cpp:408: PASSED: CHECK( oneTagWithExtras.getTestCaseInfo().description == "1234" ) with expansion: "1234" == "1234" -TestMain.cpp:402: +TestMain.cpp:409: PASSED: CHECK( oneTagWithExtras.hasTag( "one" ) ) with expansion: true -TestMain.cpp:403: +TestMain.cpp:410: PASSED: CHECK( oneTagWithExtras.hasTag( "two" ) == false ) with expansion: false == false -TestMain.cpp:404: +TestMain.cpp:411: PASSED: CHECK( oneTagWithExtras.getTags().size() == 1 ) with expansion: @@ -4419,22 +4419,22 @@ with expansion: selftest/tags start of a tag, but not closed ------------------------------------------------------------------------------- -TestMain.cpp:407 +TestMain.cpp:414 ............................................................................... -TestMain.cpp:411: +TestMain.cpp:418: PASSED: CHECK( oneTagOpen.getTestCaseInfo().description == "[one" ) with expansion: "[one" == "[one" -TestMain.cpp:412: +TestMain.cpp:419: PASSED: CHECK( oneTagOpen.hasTag( "one" ) == false ) with expansion: false == false -TestMain.cpp:413: +TestMain.cpp:420: PASSED: CHECK( oneTagOpen.getTags().size() == 0 ) with expansion: @@ -4444,28 +4444,28 @@ with expansion: selftest/tags hidden ------------------------------------------------------------------------------- -TestMain.cpp:416 +TestMain.cpp:423 ............................................................................... -TestMain.cpp:419: +TestMain.cpp:426: PASSED: CHECK( oneTag.getTestCaseInfo().description == "" ) with expansion: "" == "" -TestMain.cpp:420: +TestMain.cpp:427: PASSED: CHECK( oneTag.hasTag( "hide" ) ) with expansion: true -TestMain.cpp:421: +TestMain.cpp:428: PASSED: CHECK( oneTag.isHidden() ) with expansion: true -TestMain.cpp:423: +TestMain.cpp:430: PASSED: CHECK( oneTag.matchesTags( "~[hide]" ) == false ) with expansion: @@ -4476,10 +4476,10 @@ Long strings can be wrapped plain string No wrapping ------------------------------------------------------------------------------- -TestMain.cpp:435 +TestMain.cpp:442 ............................................................................... -TestMain.cpp:436: +TestMain.cpp:443: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString ) with expansion: @@ -4487,7 +4487,7 @@ with expansion: == "one two three four" -TestMain.cpp:437: +TestMain.cpp:444: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString ) with expansion: @@ -4500,10 +4500,10 @@ Long strings can be wrapped plain string Wrapped once ------------------------------------------------------------------------------- -TestMain.cpp:439 +TestMain.cpp:446 ............................................................................... -TestMain.cpp:440: +TestMain.cpp:447: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour" ) with expansion: @@ -4513,7 +4513,7 @@ with expansion: "one two three four" -TestMain.cpp:441: +TestMain.cpp:448: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour" ) with expansion: @@ -4523,7 +4523,7 @@ with expansion: "one two three four" -TestMain.cpp:442: +TestMain.cpp:449: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour" ) with expansion: @@ -4533,7 +4533,7 @@ with expansion: "one two three four" -TestMain.cpp:443: +TestMain.cpp:450: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour" ) with expansion: @@ -4543,7 +4543,7 @@ with expansion: "one two three four" -TestMain.cpp:444: +TestMain.cpp:451: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four" ) with expansion: @@ -4558,10 +4558,10 @@ Long strings can be wrapped plain string Wrapped twice ------------------------------------------------------------------------------- -TestMain.cpp:446 +TestMain.cpp:453 ............................................................................... -TestMain.cpp:447: +TestMain.cpp:454: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" ) with expansion: @@ -4573,7 +4573,7 @@ with expansion: three four" -TestMain.cpp:448: +TestMain.cpp:455: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" ) with expansion: @@ -4585,7 +4585,7 @@ with expansion: three four" -TestMain.cpp:449: +TestMain.cpp:456: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" ) with expansion: @@ -4602,10 +4602,10 @@ Long strings can be wrapped plain string Wrapped three times ------------------------------------------------------------------------------- -TestMain.cpp:451 +TestMain.cpp:458 ............................................................................... -TestMain.cpp:452: +TestMain.cpp:459: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" ) with expansion: @@ -4619,7 +4619,7 @@ with expansion: three four" -TestMain.cpp:453: +TestMain.cpp:460: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour" ) with expansion: @@ -4638,10 +4638,10 @@ Long strings can be wrapped plain string Short wrap ------------------------------------------------------------------------------- -TestMain.cpp:455 +TestMain.cpp:462 ............................................................................... -TestMain.cpp:456: +TestMain.cpp:463: PASSED: CHECK( Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef" ) with expansion: @@ -4651,7 +4651,7 @@ with expansion: "abc- def" -TestMain.cpp:457: +TestMain.cpp:464: PASSED: CHECK( Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg" ) with expansion: @@ -4661,7 +4661,7 @@ with expansion: "abc- defg" -TestMain.cpp:458: +TestMain.cpp:465: PASSED: CHECK( Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh" ) with expansion: @@ -4673,7 +4673,7 @@ with expansion: def- gh" -TestMain.cpp:460: +TestMain.cpp:467: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour" ) with expansion: @@ -4689,7 +4689,7 @@ with expansion: ee four" -TestMain.cpp:461: +TestMain.cpp:468: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur" ) with expansion: @@ -4712,34 +4712,34 @@ Long strings can be wrapped plain string As container ------------------------------------------------------------------------------- -TestMain.cpp:463 +TestMain.cpp:470 ............................................................................... -TestMain.cpp:465: +TestMain.cpp:472: PASSED: REQUIRE( text.size() == 4 ) with expansion: 4 == 4 -TestMain.cpp:466: +TestMain.cpp:473: PASSED: CHECK( text[0] == "one" ) with expansion: "one" == "one" -TestMain.cpp:467: +TestMain.cpp:474: PASSED: CHECK( text[1] == "two" ) with expansion: "two" == "two" -TestMain.cpp:468: +TestMain.cpp:475: PASSED: CHECK( text[2] == "three" ) with expansion: "three" == "three" -TestMain.cpp:469: +TestMain.cpp:476: PASSED: CHECK( text[3] == "four" ) with expansion: @@ -4750,10 +4750,10 @@ Long strings can be wrapped plain string Indent first line differently ------------------------------------------------------------------------------- -TestMain.cpp:471 +TestMain.cpp:478 ............................................................................... -TestMain.cpp:476: +TestMain.cpp:483: PASSED: CHECK( text.toString() == " one two\n three\n four" ) with expansion: @@ -4770,10 +4770,10 @@ Long strings can be wrapped With newlines No wrapping ------------------------------------------------------------------------------- -TestMain.cpp:486 +TestMain.cpp:493 ............................................................................... -TestMain.cpp:487: +TestMain.cpp:494: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString ) with expansion: @@ -4783,7 +4783,7 @@ with expansion: "one two three four" -TestMain.cpp:488: +TestMain.cpp:495: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString ) with expansion: @@ -4793,7 +4793,7 @@ with expansion: "one two three four" -TestMain.cpp:489: +TestMain.cpp:496: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString ) with expansion: @@ -4808,10 +4808,10 @@ Long strings can be wrapped With newlines Trailing newline ------------------------------------------------------------------------------- -TestMain.cpp:491 +TestMain.cpp:498 ............................................................................... -TestMain.cpp:492: +TestMain.cpp:499: PASSED: CHECK( Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n" ) with expansion: @@ -4821,13 +4821,13 @@ with expansion: "abcdef " -TestMain.cpp:493: +TestMain.cpp:500: PASSED: CHECK( Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" ) with expansion: "abcdef" == "abcdef" -TestMain.cpp:494: +TestMain.cpp:501: PASSED: CHECK( Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n" ) with expansion: @@ -4842,10 +4842,10 @@ Long strings can be wrapped With newlines Wrapped once ------------------------------------------------------------------------------- -TestMain.cpp:496 +TestMain.cpp:503 ............................................................................... -TestMain.cpp:497: +TestMain.cpp:504: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" ) with expansion: @@ -4857,7 +4857,7 @@ with expansion: three four" -TestMain.cpp:498: +TestMain.cpp:505: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" ) with expansion: @@ -4869,7 +4869,7 @@ with expansion: three four" -TestMain.cpp:499: +TestMain.cpp:506: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" ) with expansion: @@ -4886,10 +4886,10 @@ Long strings can be wrapped With newlines Wrapped twice ------------------------------------------------------------------------------- -TestMain.cpp:501 +TestMain.cpp:508 ............................................................................... -TestMain.cpp:502: +TestMain.cpp:509: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" ) with expansion: @@ -4907,10 +4907,10 @@ with expansion: Long strings can be wrapped With tabs ------------------------------------------------------------------------------- -TestMain.cpp:506 +TestMain.cpp:513 ............................................................................... -TestMain.cpp:512: +TestMain.cpp:519: PASSED: CHECK( Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six" ) with expansion: @@ -4929,7 +4929,7 @@ hello ------------------------------------------------------------------------------- Strings can be rendered with colour ------------------------------------------------------------------------------- -TestMain.cpp:591 +TestMain.cpp:598 ............................................................................... @@ -4938,16 +4938,16 @@ No assertions in test case, 'Strings can be rendered with colour' ------------------------------------------------------------------------------- Text can be formatted using the Text class ------------------------------------------------------------------------------- -TestMain.cpp:610 +TestMain.cpp:617 ............................................................................... -TestMain.cpp:612: +TestMain.cpp:619: PASSED: CHECK( Text( "hi there" ).toString() == "hi there" ) with expansion: "hi there" == "hi there" -TestMain.cpp:617: +TestMain.cpp:624: PASSED: CHECK( Text( "hi there", narrow ).toString() == "hi\nthere" ) with expansion: @@ -10662,25 +10662,25 @@ TestMain.cpp" line="109"> parseIntoConfig( argv, config ) -TestMain.cpp" line="111"> +TestMain.cpp" line="112"> - config.filters.size() == 1 + cfg.filters().size() == 1 1 == 1 -TestMain.cpp" line="112"> +TestMain.cpp" line="113"> - config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false + cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false false == false -TestMain.cpp" line="113"> +TestMain.cpp" line="114"> - config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) + cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) true @@ -10692,7 +10692,7 @@ TestMain.cpp" line="113">
-TestMain.cpp" line="117"> +TestMain.cpp" line="118"> parseIntoConfig( argv, config ) @@ -10700,25 +10700,25 @@ TestMain.cpp" line="117"> parseIntoConfig( argv, config ) -TestMain.cpp" line="119"> +TestMain.cpp" line="121"> - config.filters.size() == 1 + cfg.filters().size() == 1 1 == 1 -TestMain.cpp" line="120"> +TestMain.cpp" line="122"> - config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false + cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false false == false -TestMain.cpp" line="121"> +TestMain.cpp" line="123"> - config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) + cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) true @@ -10730,7 +10730,7 @@ TestMain.cpp" line="121">
-TestMain.cpp" line="126"> +TestMain.cpp" line="128"> parseIntoConfig( argv, config ) @@ -10738,25 +10738,25 @@ TestMain.cpp" line="126"> parseIntoConfig( argv, config ) -TestMain.cpp" line="128"> +TestMain.cpp" line="131"> - config.filters.size() == 1 + cfg.filters().size() == 1 1 == 1 -TestMain.cpp" line="129"> +TestMain.cpp" line="132"> - config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false + cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false false == false -TestMain.cpp" line="130"> +TestMain.cpp" line="133"> - config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) + cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) true @@ -10768,7 +10768,7 @@ TestMain.cpp" line="130">
-TestMain.cpp" line="135"> +TestMain.cpp" line="138"> parseIntoConfig( argv, config ) @@ -10776,25 +10776,25 @@ TestMain.cpp" line="135"> parseIntoConfig( argv, config ) -TestMain.cpp" line="137"> +TestMain.cpp" line="141"> - config.filters.size() == 1 + cfg.filters().size() == 1 1 == 1 -TestMain.cpp" line="138"> +TestMain.cpp" line="142"> - config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false + cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false false == false -TestMain.cpp" line="139"> +TestMain.cpp" line="143"> - config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) + cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) true @@ -10806,7 +10806,7 @@ TestMain.cpp" line="139">
-TestMain.cpp" line="144"> +TestMain.cpp" line="148"> parseIntoConfig( argv, config ) @@ -10814,25 +10814,25 @@ TestMain.cpp" line="144"> parseIntoConfig( argv, config ) -TestMain.cpp" line="146"> +TestMain.cpp" line="151"> - config.filters.size() == 1 + cfg.filters().size() == 1 1 == 1 -TestMain.cpp" line="147"> +TestMain.cpp" line="152"> - config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false + cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false false == false -TestMain.cpp" line="148"> +TestMain.cpp" line="153"> - config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) + cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) true @@ -10844,7 +10844,7 @@ TestMain.cpp" line="148">
-TestMain.cpp" line="153"> +TestMain.cpp" line="158"> parseIntoConfig( argv, config ) @@ -10852,33 +10852,33 @@ TestMain.cpp" line="153"> parseIntoConfig( argv, config ) -TestMain.cpp" line="155"> +TestMain.cpp" line="161"> - config.filters.size() == 1 + cfg.filters().size() == 1 1 == 1 -TestMain.cpp" line="156"> +TestMain.cpp" line="162"> - config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false + cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false false == false -TestMain.cpp" line="157"> +TestMain.cpp" line="163"> - config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) + cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) true -TestMain.cpp" line="158"> +TestMain.cpp" line="164"> - config.filters[0].shouldInclude( fakeTestCase( "test2" ) ) + cfg.filters()[0].shouldInclude( fakeTestCase( "test2" ) ) true @@ -10890,7 +10890,7 @@ TestMain.cpp" line="158">
-TestMain.cpp" line="163"> +TestMain.cpp" line="169"> parseIntoConfigAndReturnError( argv, config ) Contains( "at least 1" ) @@ -10907,7 +10907,7 @@ TestMain.cpp" line="163">
-TestMain.cpp" line="170"> +TestMain.cpp" line="176"> parseIntoConfig( argv, config ) @@ -10915,7 +10915,7 @@ TestMain.cpp" line="170"> parseIntoConfig( argv, config ) -TestMain.cpp" line="172"> +TestMain.cpp" line="178"> config.reporter == "console" @@ -10929,7 +10929,7 @@ TestMain.cpp" line="172">
-TestMain.cpp" line="176"> +TestMain.cpp" line="182"> parseIntoConfig( argv, config ) @@ -10937,7 +10937,7 @@ TestMain.cpp" line="176"> parseIntoConfig( argv, config ) -TestMain.cpp" line="178"> +TestMain.cpp" line="184"> config.reporter == "xml" @@ -10951,7 +10951,7 @@ TestMain.cpp" line="178">
-TestMain.cpp" line="182"> +TestMain.cpp" line="188"> parseIntoConfig( argv, config ) @@ -10959,7 +10959,7 @@ TestMain.cpp" line="182"> parseIntoConfig( argv, config ) -TestMain.cpp" line="184"> +TestMain.cpp" line="190"> config.reporter == "junit" @@ -10973,7 +10973,7 @@ TestMain.cpp" line="184">
-TestMain.cpp" line="188"> +TestMain.cpp" line="194"> parseIntoConfigAndReturnError( argv, config ) Contains( "1 argument" ) @@ -10990,7 +10990,7 @@ TestMain.cpp" line="188">
-TestMain.cpp" line="195"> +TestMain.cpp" line="201"> parseIntoConfig( argv, config ) @@ -10998,7 +10998,7 @@ TestMain.cpp" line="195"> parseIntoConfig( argv, config ) -TestMain.cpp" line="197"> +TestMain.cpp" line="203"> config.shouldDebugBreak == true @@ -11012,7 +11012,7 @@ TestMain.cpp" line="197">
-TestMain.cpp" line="201"> +TestMain.cpp" line="207"> parseIntoConfig( argv, config ) @@ -11020,7 +11020,7 @@ TestMain.cpp" line="201"> parseIntoConfig( argv, config ) -TestMain.cpp" line="203"> +TestMain.cpp" line="209"> config.shouldDebugBreak @@ -11034,7 +11034,7 @@ TestMain.cpp" line="203">
-TestMain.cpp" line="207"> +TestMain.cpp" line="213"> parseIntoConfigAndReturnError( argv, config ) Contains( "0 arguments" ) @@ -11051,7 +11051,7 @@ TestMain.cpp" line="207">
-TestMain.cpp" line="214"> +TestMain.cpp" line="220"> parseIntoConfig( argv, config ) @@ -11059,7 +11059,7 @@ TestMain.cpp" line="214"> parseIntoConfig( argv, config ) -TestMain.cpp" line="216"> +TestMain.cpp" line="222"> config.cutoff == 1 @@ -11073,7 +11073,7 @@ TestMain.cpp" line="216">
-TestMain.cpp" line="220"> +TestMain.cpp" line="226"> parseIntoConfig( argv, config ) @@ -11081,7 +11081,7 @@ TestMain.cpp" line="220"> parseIntoConfig( argv, config ) -TestMain.cpp" line="222"> +TestMain.cpp" line="228"> config.cutoff == 2 @@ -11095,7 +11095,7 @@ TestMain.cpp" line="222">
-TestMain.cpp" line="226"> +TestMain.cpp" line="232"> parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) @@ -11109,7 +11109,7 @@ TestMain.cpp" line="226">
-TestMain.cpp" line="230"> +TestMain.cpp" line="236"> parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) @@ -11123,7 +11123,7 @@ TestMain.cpp" line="230">
-TestMain.cpp" line="234"> +TestMain.cpp" line="240"> parseIntoConfigAndReturnError( argv, config ) Contains( "0 and 1 argument" ) @@ -11140,28 +11140,6 @@ TestMain.cpp" line="234">
-TestMain.cpp" line="241"> - - parseIntoConfig( argv, config ) - - - parseIntoConfig( argv, config ) - - -TestMain.cpp" line="243"> - - config.noThrow == true - - - true == true - - - -
- -
-
-
TestMain.cpp" line="247"> parseIntoConfig( argv, config ) @@ -11183,11 +11161,8 @@ TestMain.cpp" line="249">
- -
-
-
-TestMain.cpp" line="256"> +
+TestMain.cpp" line="253"> parseIntoConfig( argv, config ) @@ -11195,7 +11170,32 @@ TestMain.cpp" line="256"> parseIntoConfig( argv, config ) -TestMain.cpp" line="258"> +TestMain.cpp" line="255"> + + config.noThrow == true + + + true == true + + + +
+ +
+
+ +
+
+
+TestMain.cpp" line="262"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="264"> config.outputFilename == "filename.ext" @@ -11203,7 +11203,7 @@ TestMain.cpp" line="258"> "filename.ext" == "filename.ext" -TestMain.cpp" line="259"> +TestMain.cpp" line="265"> config.stream.empty() @@ -11217,7 +11217,7 @@ TestMain.cpp" line="259">
-TestMain.cpp" line="263"> +TestMain.cpp" line="269"> parseIntoConfig( argv, config ) @@ -11225,7 +11225,7 @@ TestMain.cpp" line="263"> parseIntoConfig( argv, config ) -TestMain.cpp" line="265"> +TestMain.cpp" line="271"> config.stream == "stdout" @@ -11233,7 +11233,7 @@ TestMain.cpp" line="265"> "stdout" == "stdout" -TestMain.cpp" line="266"> +TestMain.cpp" line="272"> config.outputFilename.empty() @@ -11247,7 +11247,7 @@ TestMain.cpp" line="266">
-TestMain.cpp" line="270"> +TestMain.cpp" line="276"> parseIntoConfig( argv, config ) @@ -11255,7 +11255,7 @@ TestMain.cpp" line="270"> parseIntoConfig( argv, config ) -TestMain.cpp" line="272"> +TestMain.cpp" line="278"> config.outputFilename == "filename.ext" @@ -11272,7 +11272,7 @@ TestMain.cpp" line="272">
-TestMain.cpp" line="279"> +TestMain.cpp" line="285"> parseIntoConfig( argv, config ) @@ -11280,7 +11280,7 @@ TestMain.cpp" line="279"> parseIntoConfig( argv, config ) -TestMain.cpp" line="281"> +TestMain.cpp" line="287"> config.cutoff == 1 @@ -11288,7 +11288,7 @@ TestMain.cpp" line="281"> 1 == 1 -TestMain.cpp" line="282"> +TestMain.cpp" line="288"> config.shouldDebugBreak @@ -11296,7 +11296,7 @@ TestMain.cpp" line="282"> true -TestMain.cpp" line="283"> +TestMain.cpp" line="289"> config.noThrow == true @@ -11311,7 +11311,7 @@ TestMain.cpp" line="283"> -TestMain.cpp" line="292"> +TestMain.cpp" line="298"> matchAny.shouldInclude( fakeTestCase( "any" ) ) @@ -11319,7 +11319,7 @@ TestMain.cpp" line="292"> true -TestMain.cpp" line="293"> +TestMain.cpp" line="299"> matchNone.shouldInclude( fakeTestCase( "any" ) ) == false @@ -11327,7 +11327,7 @@ TestMain.cpp" line="293"> false == false -TestMain.cpp" line="298"> +TestMain.cpp" line="304"> matchHidden.shouldInclude( fakeTestCase( "any" ) ) == false @@ -11335,7 +11335,7 @@ TestMain.cpp" line="298"> false == false -TestMain.cpp" line="299"> +TestMain.cpp" line="305"> matchNonHidden.shouldInclude( fakeTestCase( "any" ) ) @@ -11343,7 +11343,7 @@ TestMain.cpp" line="299"> true -TestMain.cpp" line="301"> +TestMain.cpp" line="307"> matchHidden.shouldInclude( fakeTestCase( "./any" ) ) @@ -11351,7 +11351,7 @@ TestMain.cpp" line="301"> true -TestMain.cpp" line="302"> +TestMain.cpp" line="308"> matchNonHidden.shouldInclude( fakeTestCase( "./any" ) ) == false @@ -11362,7 +11362,7 @@ TestMain.cpp" line="302"> -TestMain.cpp" line="313"> +TestMain.cpp" line="319"> matchHidden.shouldInclude( fakeTestCase( "./something" ) ) @@ -11370,7 +11370,7 @@ TestMain.cpp" line="313"> true -TestMain.cpp" line="315"> +TestMain.cpp" line="321"> filters.shouldInclude( fakeTestCase( "any" ) ) == false @@ -11378,7 +11378,7 @@ TestMain.cpp" line="315"> false == false -TestMain.cpp" line="316"> +TestMain.cpp" line="322"> filters.shouldInclude( fakeTestCase( "./something" ) ) @@ -11386,7 +11386,7 @@ TestMain.cpp" line="316"> true -TestMain.cpp" line="317"> +TestMain.cpp" line="323"> filters.shouldInclude( fakeTestCase( "./anything" ) ) == false @@ -11397,25 +11397,6 @@ TestMain.cpp" line="317"> -TestMain.cpp" line="323"> - - matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) - - - true - - -TestMain.cpp" line="324"> - - matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) == false - - - false == false - - - - - TestMain.cpp" line="329"> matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) @@ -11425,6 +11406,25 @@ TestMain.cpp" line="329"> TestMain.cpp" line="330"> + + matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) == false + + + false == false + + + + + +TestMain.cpp" line="335"> + + matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) + + + true + + +TestMain.cpp" line="336"> matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) @@ -11432,7 +11432,7 @@ TestMain.cpp" line="330"> true -TestMain.cpp" line="331"> +TestMain.cpp" line="337"> matchBadgers.shouldInclude( fakeTestCase( "badgers are big" ) ) @@ -11440,7 +11440,7 @@ TestMain.cpp" line="331"> true -TestMain.cpp" line="332"> +TestMain.cpp" line="338"> matchBadgers.shouldInclude( fakeTestCase( "hedgehogs" ) ) == false @@ -11451,7 +11451,7 @@ TestMain.cpp" line="332"> -TestMain.cpp" line="352"> +TestMain.cpp" line="358"> opt.parseIntoConfig( parser, config ) @@ -11459,25 +11459,25 @@ TestMain.cpp" line="352"> opt.parseIntoConfig( parser, config ) -TestMain.cpp" line="354"> +TestMain.cpp" line="361"> - config.filters.size() == 1 + cfg.filters().size() == 1 1 == 1 -TestMain.cpp" line="355"> +TestMain.cpp" line="362"> - config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false + cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false false == false -TestMain.cpp" line="356"> +TestMain.cpp" line="363"> - config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) + cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) true @@ -11487,7 +11487,7 @@ TestMain.cpp" line="356">
-TestMain.cpp" line="370"> +TestMain.cpp" line="377"> oneTag.getTestCaseInfo().description == "" @@ -11495,7 +11495,7 @@ TestMain.cpp" line="370"> "" == "" -TestMain.cpp" line="371"> +TestMain.cpp" line="378"> oneTag.hasTag( "one" ) @@ -11503,7 +11503,7 @@ TestMain.cpp" line="371"> true -TestMain.cpp" line="372"> +TestMain.cpp" line="379"> oneTag.getTags().size() == 1 @@ -11511,7 +11511,7 @@ TestMain.cpp" line="372"> 1 == 1 -TestMain.cpp" line="374"> +TestMain.cpp" line="381"> oneTag.matchesTags( p1 ) == true @@ -11519,7 +11519,7 @@ TestMain.cpp" line="374"> true == true -TestMain.cpp" line="375"> +TestMain.cpp" line="382"> oneTag.matchesTags( p2 ) == true @@ -11527,7 +11527,7 @@ TestMain.cpp" line="375"> true == true -TestMain.cpp" line="376"> +TestMain.cpp" line="383"> oneTag.matchesTags( p3 ) == false @@ -11535,7 +11535,7 @@ TestMain.cpp" line="376"> false == false -TestMain.cpp" line="377"> +TestMain.cpp" line="384"> oneTag.matchesTags( p4 ) == false @@ -11543,7 +11543,7 @@ TestMain.cpp" line="377"> false == false -TestMain.cpp" line="378"> +TestMain.cpp" line="385"> oneTag.matchesTags( p5 ) == false @@ -11554,7 +11554,7 @@ TestMain.cpp" line="378">
-TestMain.cpp" line="384"> +TestMain.cpp" line="391"> twoTags.getTestCaseInfo().description == "" @@ -11562,7 +11562,7 @@ TestMain.cpp" line="384"> "" == "" -TestMain.cpp" line="385"> +TestMain.cpp" line="392"> twoTags.hasTag( "one" ) @@ -11570,7 +11570,7 @@ TestMain.cpp" line="385"> true -TestMain.cpp" line="386"> +TestMain.cpp" line="393"> twoTags.hasTag( "two" ) @@ -11578,7 +11578,7 @@ TestMain.cpp" line="386"> true -TestMain.cpp" line="387"> +TestMain.cpp" line="394"> twoTags.hasTag( "Two" ) @@ -11586,7 +11586,7 @@ TestMain.cpp" line="387"> true -TestMain.cpp" line="388"> +TestMain.cpp" line="395"> twoTags.hasTag( "three" ) == false @@ -11594,7 +11594,7 @@ TestMain.cpp" line="388"> false == false -TestMain.cpp" line="389"> +TestMain.cpp" line="396"> twoTags.getTags().size() == 2 @@ -11602,7 +11602,7 @@ TestMain.cpp" line="389"> 2 == 2 -TestMain.cpp" line="391"> +TestMain.cpp" line="398"> twoTags.matchesTags( p1 ) == true @@ -11610,7 +11610,7 @@ TestMain.cpp" line="391"> true == true -TestMain.cpp" line="392"> +TestMain.cpp" line="399"> twoTags.matchesTags( p2 ) == true @@ -11618,7 +11618,7 @@ TestMain.cpp" line="392"> true == true -TestMain.cpp" line="393"> +TestMain.cpp" line="400"> twoTags.matchesTags( p3 ) == true @@ -11626,7 +11626,7 @@ TestMain.cpp" line="393"> true == true -TestMain.cpp" line="394"> +TestMain.cpp" line="401"> twoTags.matchesTags( p4 ) == true @@ -11634,7 +11634,7 @@ TestMain.cpp" line="394"> true == true -TestMain.cpp" line="395"> +TestMain.cpp" line="402"> twoTags.matchesTags( p5 ) == true @@ -11645,7 +11645,7 @@ TestMain.cpp" line="395">
-TestMain.cpp" line="401"> +TestMain.cpp" line="408"> oneTagWithExtras.getTestCaseInfo().description == "1234" @@ -11653,7 +11653,7 @@ TestMain.cpp" line="401"> "1234" == "1234" -TestMain.cpp" line="402"> +TestMain.cpp" line="409"> oneTagWithExtras.hasTag( "one" ) @@ -11661,7 +11661,7 @@ TestMain.cpp" line="402"> true -TestMain.cpp" line="403"> +TestMain.cpp" line="410"> oneTagWithExtras.hasTag( "two" ) == false @@ -11669,7 +11669,7 @@ TestMain.cpp" line="403"> false == false -TestMain.cpp" line="404"> +TestMain.cpp" line="411"> oneTagWithExtras.getTags().size() == 1 @@ -11680,7 +11680,7 @@ TestMain.cpp" line="404">
-TestMain.cpp" line="411"> +TestMain.cpp" line="418"> oneTagOpen.getTestCaseInfo().description == "[one" @@ -11688,7 +11688,7 @@ TestMain.cpp" line="411"> "[one" == "[one" -TestMain.cpp" line="412"> +TestMain.cpp" line="419"> oneTagOpen.hasTag( "one" ) == false @@ -11696,7 +11696,7 @@ TestMain.cpp" line="412"> false == false -TestMain.cpp" line="413"> +TestMain.cpp" line="420"> oneTagOpen.getTags().size() == 0 @@ -11707,7 +11707,7 @@ TestMain.cpp" line="413">
-TestMain.cpp" line="419"> +TestMain.cpp" line="426"> oneTag.getTestCaseInfo().description == "" @@ -11715,7 +11715,7 @@ TestMain.cpp" line="419"> "" == "" -TestMain.cpp" line="420"> +TestMain.cpp" line="427"> oneTag.hasTag( "hide" ) @@ -11723,7 +11723,7 @@ TestMain.cpp" line="420"> true -TestMain.cpp" line="421"> +TestMain.cpp" line="428"> oneTag.isHidden() @@ -11731,7 +11731,7 @@ TestMain.cpp" line="421"> true -TestMain.cpp" line="423"> +TestMain.cpp" line="430"> oneTag.matchesTags( "~[hide]" ) == false @@ -11746,7 +11746,7 @@ TestMain.cpp" line="423">
-TestMain.cpp" line="436"> +TestMain.cpp" line="443"> Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString @@ -11756,7 +11756,7 @@ TestMain.cpp" line="436"> "one two three four" -TestMain.cpp" line="437"> +TestMain.cpp" line="444"> Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString @@ -11772,7 +11772,7 @@ TestMain.cpp" line="437">
-TestMain.cpp" line="440"> +TestMain.cpp" line="447"> Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour" @@ -11784,7 +11784,7 @@ four" four" -TestMain.cpp" line="441"> +TestMain.cpp" line="448"> Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour" @@ -11796,7 +11796,7 @@ four" four" -TestMain.cpp" line="442"> +TestMain.cpp" line="449"> Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour" @@ -11808,7 +11808,7 @@ four" four" -TestMain.cpp" line="443"> +TestMain.cpp" line="450"> Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour" @@ -11820,7 +11820,7 @@ four" four" -TestMain.cpp" line="444"> +TestMain.cpp" line="451"> Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four" @@ -11838,7 +11838,7 @@ three four"
-TestMain.cpp" line="447"> +TestMain.cpp" line="454"> Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" @@ -11852,7 +11852,7 @@ three four" -TestMain.cpp" line="448"> +TestMain.cpp" line="455"> Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" @@ -11866,7 +11866,7 @@ three four" -TestMain.cpp" line="449"> +TestMain.cpp" line="456"> Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" @@ -11886,7 +11886,7 @@ four"
-TestMain.cpp" line="452"> +TestMain.cpp" line="459"> Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" @@ -11902,7 +11902,7 @@ three four" -TestMain.cpp" line="453"> +TestMain.cpp" line="460"> Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour" @@ -11924,7 +11924,7 @@ four"
-TestMain.cpp" line="456"> +TestMain.cpp" line="463"> Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef" @@ -11936,7 +11936,7 @@ def" def" -TestMain.cpp" line="457"> +TestMain.cpp" line="464"> Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg" @@ -11948,7 +11948,7 @@ defg" defg" -TestMain.cpp" line="458"> +TestMain.cpp" line="465"> Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh" @@ -11962,7 +11962,7 @@ def- gh" -TestMain.cpp" line="460"> +TestMain.cpp" line="467"> Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour" @@ -11980,7 +11980,7 @@ ee four" -TestMain.cpp" line="461"> +TestMain.cpp" line="468"> Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur" @@ -12006,7 +12006,7 @@ ur"
-TestMain.cpp" line="465"> +TestMain.cpp" line="472"> text.size() == 4 @@ -12014,7 +12014,7 @@ TestMain.cpp" line="465"> 4 == 4 -TestMain.cpp" line="466"> +TestMain.cpp" line="473"> text[0] == "one" @@ -12022,7 +12022,7 @@ TestMain.cpp" line="466"> "one" == "one" -TestMain.cpp" line="467"> +TestMain.cpp" line="474"> text[1] == "two" @@ -12030,7 +12030,7 @@ TestMain.cpp" line="467"> "two" == "two" -TestMain.cpp" line="468"> +TestMain.cpp" line="475"> text[2] == "three" @@ -12038,7 +12038,7 @@ TestMain.cpp" line="468"> "three" == "three" -TestMain.cpp" line="469"> +TestMain.cpp" line="476"> text[3] == "four" @@ -12052,7 +12052,7 @@ TestMain.cpp" line="469">
-TestMain.cpp" line="476"> +TestMain.cpp" line="483"> text.toString() == " one two\n three\n four" @@ -12075,7 +12075,7 @@ TestMain.cpp" line="476">
-TestMain.cpp" line="487"> +TestMain.cpp" line="494"> Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString @@ -12087,7 +12087,7 @@ three four" three four" -TestMain.cpp" line="488"> +TestMain.cpp" line="495"> Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString @@ -12099,7 +12099,7 @@ three four" three four" -TestMain.cpp" line="489"> +TestMain.cpp" line="496"> Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString @@ -12117,7 +12117,7 @@ three four"
-TestMain.cpp" line="492"> +TestMain.cpp" line="499"> Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n" @@ -12129,7 +12129,7 @@ TestMain.cpp" line="492"> " -TestMain.cpp" line="493"> +TestMain.cpp" line="500"> Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" @@ -12137,7 +12137,7 @@ TestMain.cpp" line="493"> "abcdef" == "abcdef" -TestMain.cpp" line="494"> +TestMain.cpp" line="501"> Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n" @@ -12155,7 +12155,7 @@ TestMain.cpp" line="494">
-TestMain.cpp" line="497"> +TestMain.cpp" line="504"> Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" @@ -12169,7 +12169,7 @@ three four" -TestMain.cpp" line="498"> +TestMain.cpp" line="505"> Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" @@ -12183,7 +12183,7 @@ three four" -TestMain.cpp" line="499"> +TestMain.cpp" line="506"> Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" @@ -12203,7 +12203,7 @@ four"
-TestMain.cpp" line="502"> +TestMain.cpp" line="509"> Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" @@ -12227,7 +12227,7 @@ four"
-TestMain.cpp" line="512"> +TestMain.cpp" line="519"> Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six" @@ -12251,7 +12251,7 @@ TestMain.cpp" line="512"> -TestMain.cpp" line="612"> +TestMain.cpp" line="619"> Text( "hi there" ).toString() == "hi there" @@ -12259,7 +12259,7 @@ TestMain.cpp" line="612"> "hi there" == "hi there" -TestMain.cpp" line="617"> +TestMain.cpp" line="624"> Text( "hi there", narrow ).toString() == "hi\nthere" @@ -14265,67 +14265,67 @@ TestMain.cpp:103: config.reporter.empty() succeeded for: true [Started section: 'test lists'] [Started section: '-t/1'] TestMain.cpp:109: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:111: config.filters.size() == 1 succeeded for: 1 == 1 -TestMain.cpp:112: config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false succeeded for: false == false -TestMain.cpp:113: config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) succeeded for: true +TestMain.cpp:112: cfg.filters().size() == 1 succeeded for: 1 == 1 +TestMain.cpp:113: cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false succeeded for: false == false +TestMain.cpp:114: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) succeeded for: true [End of section: '-t/1' All 4 assertions passed] [End of section: 'test lists' All 4 assertions passed] [Started section: 'test lists'] [Started section: '-t/exclude:1'] -TestMain.cpp:117: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:119: config.filters.size() == 1 succeeded for: 1 == 1 -TestMain.cpp:120: config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false succeeded for: false == false -TestMain.cpp:121: config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) succeeded for: true +TestMain.cpp:118: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:121: cfg.filters().size() == 1 succeeded for: 1 == 1 +TestMain.cpp:122: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false succeeded for: false == false +TestMain.cpp:123: cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) succeeded for: true [End of section: '-t/exclude:1' All 4 assertions passed] [End of section: 'test lists' All 4 assertions passed] [Started section: 'test lists'] [Started section: '--test/1'] -TestMain.cpp:126: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:128: config.filters.size() == 1 succeeded for: 1 == 1 -TestMain.cpp:129: config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false succeeded for: false == false -TestMain.cpp:130: config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) succeeded for: true +TestMain.cpp:128: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:131: cfg.filters().size() == 1 succeeded for: 1 == 1 +TestMain.cpp:132: cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false succeeded for: false == false +TestMain.cpp:133: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) succeeded for: true [End of section: '--test/1' All 4 assertions passed] [End of section: 'test lists' All 4 assertions passed] [Started section: 'test lists'] [Started section: '--test/exclude:1'] -TestMain.cpp:135: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:137: config.filters.size() == 1 succeeded for: 1 == 1 -TestMain.cpp:138: config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false succeeded for: false == false -TestMain.cpp:139: config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) succeeded for: true +TestMain.cpp:138: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:141: cfg.filters().size() == 1 succeeded for: 1 == 1 +TestMain.cpp:142: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false succeeded for: false == false +TestMain.cpp:143: cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) succeeded for: true [End of section: '--test/exclude:1' All 4 assertions passed] [End of section: 'test lists' All 4 assertions passed] [Started section: 'test lists'] [Started section: '--test/exclude:2'] -TestMain.cpp:144: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:146: config.filters.size() == 1 succeeded for: 1 == 1 -TestMain.cpp:147: config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false succeeded for: false == false -TestMain.cpp:148: config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) succeeded for: true +TestMain.cpp:148: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:151: cfg.filters().size() == 1 succeeded for: 1 == 1 +TestMain.cpp:152: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false succeeded for: false == false +TestMain.cpp:153: cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) succeeded for: true [End of section: '--test/exclude:2' All 4 assertions passed] [End of section: 'test lists' All 4 assertions passed] [Started section: 'test lists'] [Started section: '-t/2'] -TestMain.cpp:153: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:155: config.filters.size() == 1 succeeded for: 1 == 1 -TestMain.cpp:156: config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false succeeded for: false == false -TestMain.cpp:157: config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) succeeded for: true -TestMain.cpp:158: config.filters[0].shouldInclude( fakeTestCase( "test2" ) ) succeeded for: true +TestMain.cpp:158: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:161: cfg.filters().size() == 1 succeeded for: 1 == 1 +TestMain.cpp:162: cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false succeeded for: false == false +TestMain.cpp:163: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) succeeded for: true +TestMain.cpp:164: cfg.filters()[0].shouldInclude( fakeTestCase( "test2" ) ) succeeded for: true [End of section: '-t/2' All 5 assertions passed] [End of section: 'test lists' All 5 assertions passed] [Started section: 'test lists'] [Started section: '-t/0'] -TestMain.cpp:163: parseIntoConfigAndReturnError( argv, config ) Contains( "at least 1" ) succeeded for: +TestMain.cpp:169: parseIntoConfigAndReturnError( argv, config ) Contains( "at least 1" ) succeeded for: "Error while parsing arguments. Expected at least 1 argument." contains: "at least 1" [End of section: '-t/0' 1 assertion passed] @@ -14333,31 +14333,31 @@ TestMain.cpp:163: parseIntoConfigAndReturnError( argv, config ) Contains( "at le [Started section: 'reporter'] [Started section: '-r/console'] -TestMain.cpp:170: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:172: config.reporter == "console" succeeded for: "console" == "console" +TestMain.cpp:176: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:178: config.reporter == "console" succeeded for: "console" == "console" [End of section: '-r/console' All 2 assertions passed] [End of section: 'reporter' All 2 assertions passed] [Started section: 'reporter'] [Started section: '-r/xml'] -TestMain.cpp:176: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:178: config.reporter == "xml" succeeded for: "xml" == "xml" +TestMain.cpp:182: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:184: config.reporter == "xml" succeeded for: "xml" == "xml" [End of section: '-r/xml' All 2 assertions passed] [End of section: 'reporter' All 2 assertions passed] [Started section: 'reporter'] [Started section: '--reporter/junit'] -TestMain.cpp:182: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:184: config.reporter == "junit" succeeded for: "junit" == "junit" +TestMain.cpp:188: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:190: config.reporter == "junit" succeeded for: "junit" == "junit" [End of section: '--reporter/junit' All 2 assertions passed] [End of section: 'reporter' All 2 assertions passed] [Started section: 'reporter'] [Started section: '-r/error'] -TestMain.cpp:188: parseIntoConfigAndReturnError( argv, config ) Contains( "1 argument" ) succeeded for: +TestMain.cpp:194: parseIntoConfigAndReturnError( argv, config ) Contains( "1 argument" ) succeeded for: "Error while parsing arguments. Expected 1 argument. Arguments were: one two" contains: "1 argument" [End of section: '-r/error' 1 assertion passed] @@ -14365,23 +14365,23 @@ TestMain.cpp:188: parseIntoConfigAndReturnError( argv, config ) Contains( "1 arg [Started section: 'debugger'] [Started section: '-b'] -TestMain.cpp:195: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:197: config.shouldDebugBreak == true succeeded for: true == true +TestMain.cpp:201: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:203: config.shouldDebugBreak == true succeeded for: true == true [End of section: '-b' All 2 assertions passed] [End of section: 'debugger' All 2 assertions passed] [Started section: 'debugger'] [Started section: '--break'] -TestMain.cpp:201: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:203: config.shouldDebugBreak succeeded for: true +TestMain.cpp:207: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:209: config.shouldDebugBreak succeeded for: true [End of section: '--break' All 2 assertions passed] [End of section: 'debugger' All 2 assertions passed] [Started section: 'debugger'] [Started section: '-b'] -TestMain.cpp:207: parseIntoConfigAndReturnError( argv, config ) Contains( "0 arguments" ) succeeded for: +TestMain.cpp:213: parseIntoConfigAndReturnError( argv, config ) Contains( "0 arguments" ) succeeded for: "Error while parsing arguments. Expected 0 arguments. Arguments were: unexpected" contains: "0 arguments" [End of section: '-b' 1 assertion passed] @@ -14389,23 +14389,23 @@ TestMain.cpp:207: parseIntoConfigAndReturnError( argv, config ) Contains( "0 arg [Started section: 'abort'] [Started section: '-a'] -TestMain.cpp:214: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:216: config.cutoff == 1 succeeded for: 1 == 1 +TestMain.cpp:220: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:222: config.cutoff == 1 succeeded for: 1 == 1 [End of section: '-a' All 2 assertions passed] [End of section: 'abort' All 2 assertions passed] [Started section: 'abort'] [Started section: '-a/2'] -TestMain.cpp:220: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:222: config.cutoff == 2 succeeded for: 2 == 2 +TestMain.cpp:226: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:228: config.cutoff == 2 succeeded for: 2 == 2 [End of section: '-a/2' All 2 assertions passed] [End of section: 'abort' All 2 assertions passed] [Started section: 'abort'] [Started section: '-a/error/0'] -TestMain.cpp:226: parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) succeeded for: +TestMain.cpp:232: parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) succeeded for: "Error while parsing arguments. threshold must be a number greater than zero. Arguments were: 0" contains: "greater than zero" [End of section: '-a/error/0' 1 assertion passed] @@ -14413,7 +14413,7 @@ TestMain.cpp:226: parseIntoConfigAndReturnError( argv, config ) Contains( "great [Started section: 'abort'] [Started section: '-a/error/non numeric'] -TestMain.cpp:230: parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) succeeded for: +TestMain.cpp:236: parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) succeeded for: "Error while parsing arguments. threshold must be a number greater than zero. Arguments were: oops" contains: "greater than zero" [End of section: '-a/error/non numeric' 1 assertion passed] @@ -14421,7 +14421,7 @@ TestMain.cpp:230: parseIntoConfigAndReturnError( argv, config ) Contains( "great [Started section: 'abort'] [Started section: '-a/error/two args'] -TestMain.cpp:234: parseIntoConfigAndReturnError( argv, config ) Contains( "0 and 1 argument" ) succeeded for: +TestMain.cpp:240: parseIntoConfigAndReturnError( argv, config ) Contains( "0 and 1 argument" ) succeeded for: "Error while parsing arguments. Expected between 0 and 1 argument. Arguments were: 1 2" contains: "0 and 1 argument" [End of section: '-a/error/two args' 1 assertion passed] @@ -14429,52 +14429,52 @@ TestMain.cpp:234: parseIntoConfigAndReturnError( argv, config ) Contains( "0 and [Started section: 'nothrow'] [Started section: '-nt'] -TestMain.cpp:241: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:243: config.noThrow == true succeeded for: true == true +TestMain.cpp:247: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:249: config.noThrow == true succeeded for: true == true [End of section: '-nt' All 2 assertions passed] [End of section: 'nothrow' All 2 assertions passed] [Started section: 'nothrow'] [Started section: '--nothrow'] -TestMain.cpp:247: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:249: config.noThrow == true succeeded for: true == true +TestMain.cpp:253: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:255: config.noThrow == true succeeded for: true == true [End of section: '--nothrow' All 2 assertions passed] [End of section: 'nothrow' All 2 assertions passed] [Started section: 'streams'] [Started section: '-o filename'] -TestMain.cpp:256: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:258: config.outputFilename == "filename.ext" succeeded for: "filename.ext" == "filename.ext" -TestMain.cpp:259: config.stream.empty() succeeded for: true +TestMain.cpp:262: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:264: config.outputFilename == "filename.ext" succeeded for: "filename.ext" == "filename.ext" +TestMain.cpp:265: config.stream.empty() succeeded for: true [End of section: '-o filename' All 3 assertions passed] [End of section: 'streams' All 3 assertions passed] [Started section: 'streams'] [Started section: '-o %stdout'] -TestMain.cpp:263: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:265: config.stream == "stdout" succeeded for: "stdout" == "stdout" -TestMain.cpp:266: config.outputFilename.empty() succeeded for: true +TestMain.cpp:269: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:271: config.stream == "stdout" succeeded for: "stdout" == "stdout" +TestMain.cpp:272: config.outputFilename.empty() succeeded for: true [End of section: '-o %stdout' All 3 assertions passed] [End of section: 'streams' All 3 assertions passed] [Started section: 'streams'] [Started section: '--out'] -TestMain.cpp:270: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:272: config.outputFilename == "filename.ext" succeeded for: "filename.ext" == "filename.ext" +TestMain.cpp:276: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:278: config.outputFilename == "filename.ext" succeeded for: "filename.ext" == "filename.ext" [End of section: '--out' All 2 assertions passed] [End of section: 'streams' All 2 assertions passed] [Started section: 'combinations'] [Started section: '-a -b'] -TestMain.cpp:279: parseIntoConfig( argv, config ) succeeded -TestMain.cpp:281: config.cutoff == 1 succeeded for: 1 == 1 -TestMain.cpp:282: config.shouldDebugBreak succeeded for: true -TestMain.cpp:283: config.noThrow == true succeeded for: true == true +TestMain.cpp:285: parseIntoConfig( argv, config ) succeeded +TestMain.cpp:287: config.cutoff == 1 succeeded for: 1 == 1 +TestMain.cpp:288: config.shouldDebugBreak succeeded for: true +TestMain.cpp:289: config.noThrow == true succeeded for: true == true [End of section: '-a -b' All 4 assertions passed] [End of section: 'combinations' All 4 assertions passed] @@ -14482,84 +14482,84 @@ TestMain.cpp:283: config.noThrow == true succeeded for: true == true [Finished: 'selftest/parser/2' All tests passed (66 assertions in 1 test case)] [Running: selftest/test filter] -TestMain.cpp:292: matchAny.shouldInclude( fakeTestCase( "any" ) ) succeeded for: true -TestMain.cpp:293: matchNone.shouldInclude( fakeTestCase( "any" ) ) == false succeeded for: false == false -TestMain.cpp:298: matchHidden.shouldInclude( fakeTestCase( "any" ) ) == false succeeded for: false == false -TestMain.cpp:299: matchNonHidden.shouldInclude( fakeTestCase( "any" ) ) succeeded for: true -TestMain.cpp:301: matchHidden.shouldInclude( fakeTestCase( "./any" ) ) succeeded for: true -TestMain.cpp:302: matchNonHidden.shouldInclude( fakeTestCase( "./any" ) ) == false succeeded for: false == false +TestMain.cpp:298: matchAny.shouldInclude( fakeTestCase( "any" ) ) succeeded for: true +TestMain.cpp:299: matchNone.shouldInclude( fakeTestCase( "any" ) ) == false succeeded for: false == false +TestMain.cpp:304: matchHidden.shouldInclude( fakeTestCase( "any" ) ) == false succeeded for: false == false +TestMain.cpp:305: matchNonHidden.shouldInclude( fakeTestCase( "any" ) ) succeeded for: true +TestMain.cpp:307: matchHidden.shouldInclude( fakeTestCase( "./any" ) ) succeeded for: true +TestMain.cpp:308: matchNonHidden.shouldInclude( fakeTestCase( "./any" ) ) == false succeeded for: false == false [Finished: 'selftest/test filter' All tests passed (6 assertions in 1 test case)] [Running: selftest/test filters] -TestMain.cpp:313: matchHidden.shouldInclude( fakeTestCase( "./something" ) ) succeeded for: true -TestMain.cpp:315: filters.shouldInclude( fakeTestCase( "any" ) ) == false succeeded for: false == false -TestMain.cpp:316: filters.shouldInclude( fakeTestCase( "./something" ) ) succeeded for: true -TestMain.cpp:317: filters.shouldInclude( fakeTestCase( "./anything" ) ) == false succeeded for: false == false +TestMain.cpp:319: matchHidden.shouldInclude( fakeTestCase( "./something" ) ) succeeded for: true +TestMain.cpp:321: filters.shouldInclude( fakeTestCase( "any" ) ) == false succeeded for: false == false +TestMain.cpp:322: filters.shouldInclude( fakeTestCase( "./something" ) ) succeeded for: true +TestMain.cpp:323: filters.shouldInclude( fakeTestCase( "./anything" ) ) == false succeeded for: false == false [Finished: 'selftest/test filters' All tests passed (4 assertions in 1 test case)] [Running: selftest/filter/prefix wildcard] -TestMain.cpp:323: matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) succeeded for: true -TestMain.cpp:324: matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) == false succeeded for: false == false +TestMain.cpp:329: matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) succeeded for: true +TestMain.cpp:330: matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) == false succeeded for: false == false [Finished: 'selftest/filter/prefix wildcard' All tests passed (2 assertions in 1 test case)] [Running: selftest/filter/wildcard at both ends] -TestMain.cpp:329: matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) succeeded for: true -TestMain.cpp:330: matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) succeeded for: true -TestMain.cpp:331: matchBadgers.shouldInclude( fakeTestCase( "badgers are big" ) ) succeeded for: true -TestMain.cpp:332: matchBadgers.shouldInclude( fakeTestCase( "hedgehogs" ) ) == false succeeded for: false == false +TestMain.cpp:335: matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) succeeded for: true +TestMain.cpp:336: matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) succeeded for: true +TestMain.cpp:337: matchBadgers.shouldInclude( fakeTestCase( "badgers are big" ) ) succeeded for: true +TestMain.cpp:338: matchBadgers.shouldInclude( fakeTestCase( "hedgehogs" ) ) == false succeeded for: false == false [Finished: 'selftest/filter/wildcard at both ends' All tests passed (4 assertions in 1 test case)] [Running: selftest/option parsers] -TestMain.cpp:352: opt.parseIntoConfig( parser, config ) succeeded -TestMain.cpp:354: config.filters.size() == 1 succeeded for: 1 == 1 -TestMain.cpp:355: config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false succeeded for: false == false -TestMain.cpp:356: config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) succeeded for: true +TestMain.cpp:358: opt.parseIntoConfig( parser, config ) succeeded +TestMain.cpp:361: cfg.filters().size() == 1 succeeded for: 1 == 1 +TestMain.cpp:362: cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false succeeded for: false == false +TestMain.cpp:363: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) succeeded for: true [Finished: 'selftest/option parsers' All tests passed (4 assertions in 1 test case)] [Running: selftest/tags] [Started section: 'one tag'] -TestMain.cpp:370: oneTag.getTestCaseInfo().description == "" succeeded for: "" == "" -TestMain.cpp:371: oneTag.hasTag( "one" ) succeeded for: true -TestMain.cpp:372: oneTag.getTags().size() == 1 succeeded for: 1 == 1 -TestMain.cpp:374: oneTag.matchesTags( p1 ) == true succeeded for: true == true -TestMain.cpp:375: oneTag.matchesTags( p2 ) == true succeeded for: true == true -TestMain.cpp:376: oneTag.matchesTags( p3 ) == false succeeded for: false == false -TestMain.cpp:377: oneTag.matchesTags( p4 ) == false succeeded for: false == false -TestMain.cpp:378: oneTag.matchesTags( p5 ) == false succeeded for: false == false +TestMain.cpp:377: oneTag.getTestCaseInfo().description == "" succeeded for: "" == "" +TestMain.cpp:378: oneTag.hasTag( "one" ) succeeded for: true +TestMain.cpp:379: oneTag.getTags().size() == 1 succeeded for: 1 == 1 +TestMain.cpp:381: oneTag.matchesTags( p1 ) == true succeeded for: true == true +TestMain.cpp:382: oneTag.matchesTags( p2 ) == true succeeded for: true == true +TestMain.cpp:383: oneTag.matchesTags( p3 ) == false succeeded for: false == false +TestMain.cpp:384: oneTag.matchesTags( p4 ) == false succeeded for: false == false +TestMain.cpp:385: oneTag.matchesTags( p5 ) == false succeeded for: false == false [End of section: 'one tag' All 8 assertions passed] [Started section: 'two tags'] -TestMain.cpp:384: twoTags.getTestCaseInfo().description == "" succeeded for: "" == "" -TestMain.cpp:385: twoTags.hasTag( "one" ) succeeded for: true -TestMain.cpp:386: twoTags.hasTag( "two" ) succeeded for: true -TestMain.cpp:387: twoTags.hasTag( "Two" ) succeeded for: true -TestMain.cpp:388: twoTags.hasTag( "three" ) == false succeeded for: false == false -TestMain.cpp:389: twoTags.getTags().size() == 2 succeeded for: 2 == 2 -TestMain.cpp:391: twoTags.matchesTags( p1 ) == true succeeded for: true == true -TestMain.cpp:392: twoTags.matchesTags( p2 ) == true succeeded for: true == true -TestMain.cpp:393: twoTags.matchesTags( p3 ) == true succeeded for: true == true -TestMain.cpp:394: twoTags.matchesTags( p4 ) == true succeeded for: true == true -TestMain.cpp:395: twoTags.matchesTags( p5 ) == true succeeded for: true == true +TestMain.cpp:391: twoTags.getTestCaseInfo().description == "" succeeded for: "" == "" +TestMain.cpp:392: twoTags.hasTag( "one" ) succeeded for: true +TestMain.cpp:393: twoTags.hasTag( "two" ) succeeded for: true +TestMain.cpp:394: twoTags.hasTag( "Two" ) succeeded for: true +TestMain.cpp:395: twoTags.hasTag( "three" ) == false succeeded for: false == false +TestMain.cpp:396: twoTags.getTags().size() == 2 succeeded for: 2 == 2 +TestMain.cpp:398: twoTags.matchesTags( p1 ) == true succeeded for: true == true +TestMain.cpp:399: twoTags.matchesTags( p2 ) == true succeeded for: true == true +TestMain.cpp:400: twoTags.matchesTags( p3 ) == true succeeded for: true == true +TestMain.cpp:401: twoTags.matchesTags( p4 ) == true succeeded for: true == true +TestMain.cpp:402: twoTags.matchesTags( p5 ) == true succeeded for: true == true [End of section: 'two tags' All 11 assertions passed] [Started section: 'one tag with characters either side'] -TestMain.cpp:401: oneTagWithExtras.getTestCaseInfo().description == "1234" succeeded for: "1234" == "1234" -TestMain.cpp:402: oneTagWithExtras.hasTag( "one" ) succeeded for: true -TestMain.cpp:403: oneTagWithExtras.hasTag( "two" ) == false succeeded for: false == false -TestMain.cpp:404: oneTagWithExtras.getTags().size() == 1 succeeded for: 1 == 1 +TestMain.cpp:408: oneTagWithExtras.getTestCaseInfo().description == "1234" succeeded for: "1234" == "1234" +TestMain.cpp:409: oneTagWithExtras.hasTag( "one" ) succeeded for: true +TestMain.cpp:410: oneTagWithExtras.hasTag( "two" ) == false succeeded for: false == false +TestMain.cpp:411: oneTagWithExtras.getTags().size() == 1 succeeded for: 1 == 1 [End of section: 'one tag with characters either side' All 4 assertions passed] [Started section: 'start of a tag, but not closed'] -TestMain.cpp:411: oneTagOpen.getTestCaseInfo().description == "[one" succeeded for: "[one" == "[one" -TestMain.cpp:412: oneTagOpen.hasTag( "one" ) == false succeeded for: false == false -TestMain.cpp:413: oneTagOpen.getTags().size() == 0 succeeded for: 0 == 0 +TestMain.cpp:418: oneTagOpen.getTestCaseInfo().description == "[one" succeeded for: "[one" == "[one" +TestMain.cpp:419: oneTagOpen.hasTag( "one" ) == false succeeded for: false == false +TestMain.cpp:420: oneTagOpen.getTags().size() == 0 succeeded for: 0 == 0 [End of section: 'start of a tag, but not closed' All 3 assertions passed] [Started section: 'hidden'] -TestMain.cpp:419: oneTag.getTestCaseInfo().description == "" succeeded for: "" == "" -TestMain.cpp:420: oneTag.hasTag( "hide" ) succeeded for: true -TestMain.cpp:421: oneTag.isHidden() succeeded for: true -TestMain.cpp:423: oneTag.matchesTags( "~[hide]" ) == false succeeded for: false == false +TestMain.cpp:426: oneTag.getTestCaseInfo().description == "" succeeded for: "" == "" +TestMain.cpp:427: oneTag.hasTag( "hide" ) succeeded for: true +TestMain.cpp:428: oneTag.isHidden() succeeded for: true +TestMain.cpp:430: oneTag.matchesTags( "~[hide]" ) == false succeeded for: false == false [End of section: 'hidden' All 4 assertions passed] [Finished: 'selftest/tags' All tests passed (30 assertions in 1 test case)] @@ -14567,11 +14567,11 @@ TestMain.cpp:423: oneTag.matchesTags( "~[hide]" ) == false succeeded for: false [Running: Long strings can be wrapped] [Started section: 'plain string'] [Started section: 'No wrapping'] -TestMain.cpp:436: Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString succeeded for: +TestMain.cpp:443: Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString succeeded for: "one two three four" == "one two three four" -TestMain.cpp:437: Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString succeeded for: +TestMain.cpp:444: Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString succeeded for: "one two three four" == "one two three four" @@ -14581,31 +14581,31 @@ TestMain.cpp:437: Text( testString, TextAttributes().setWidth( 18 ) ).toString() [Started section: 'plain string'] [Started section: 'Wrapped once'] -TestMain.cpp:440: Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour" succeeded for: +TestMain.cpp:447: Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour" succeeded for: "one two three four" == "one two three four" -TestMain.cpp:441: Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour" succeeded for: +TestMain.cpp:448: Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour" succeeded for: "one two three four" == "one two three four" -TestMain.cpp:442: Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour" succeeded for: +TestMain.cpp:449: Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour" succeeded for: "one two three four" == "one two three four" -TestMain.cpp:443: Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour" succeeded for: +TestMain.cpp:450: Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour" succeeded for: "one two three four" == "one two three four" -TestMain.cpp:444: Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four" succeeded for: +TestMain.cpp:451: Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four" succeeded for: "one two three four" == @@ -14617,7 +14617,7 @@ three four" [Started section: 'plain string'] [Started section: 'Wrapped twice'] -TestMain.cpp:447: Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" succeeded for: +TestMain.cpp:454: Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" succeeded for: "one two three four" @@ -14625,7 +14625,7 @@ four" "one two three four" -TestMain.cpp:448: Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" succeeded for: +TestMain.cpp:455: Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" succeeded for: "one two three four" @@ -14633,7 +14633,7 @@ four" "one two three four" -TestMain.cpp:449: Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" succeeded for: +TestMain.cpp:456: Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" succeeded for: "one two three four" @@ -14647,7 +14647,7 @@ four" [Started section: 'plain string'] [Started section: 'Wrapped three times'] -TestMain.cpp:452: Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" succeeded for: +TestMain.cpp:459: Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" succeeded for: "one two three @@ -14657,7 +14657,7 @@ four" two three four" -TestMain.cpp:453: Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour" succeeded for: +TestMain.cpp:460: Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour" succeeded for: "one two three @@ -14673,24 +14673,24 @@ four" [Started section: 'plain string'] [Started section: 'Short wrap'] -TestMain.cpp:456: Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef" succeeded for: "abc- +TestMain.cpp:463: Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef" succeeded for: "abc- def" == "abc- def" -TestMain.cpp:457: Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg" succeeded for: "abc- +TestMain.cpp:464: Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg" succeeded for: "abc- defg" == "abc- defg" -TestMain.cpp:458: Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh" succeeded for: "abc- +TestMain.cpp:465: Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh" succeeded for: "abc- def- gh" == "abc- def- gh" -TestMain.cpp:460: Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour" succeeded for: +TestMain.cpp:467: Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour" succeeded for: "one two thr- @@ -14702,7 +14702,7 @@ two thr- ee four" -TestMain.cpp:461: Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur" succeeded for: +TestMain.cpp:468: Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur" succeeded for: "one two th- @@ -14722,18 +14722,18 @@ ur" [Started section: 'plain string'] [Started section: 'As container'] -TestMain.cpp:465: text.size() == 4 succeeded for: 4 == 4 -TestMain.cpp:466: text[0] == "one" succeeded for: "one" == "one" -TestMain.cpp:467: text[1] == "two" succeeded for: "two" == "two" -TestMain.cpp:468: text[2] == "three" succeeded for: "three" == "three" -TestMain.cpp:469: text[3] == "four" succeeded for: "four" == "four" +TestMain.cpp:472: text.size() == 4 succeeded for: 4 == 4 +TestMain.cpp:473: text[0] == "one" succeeded for: "one" == "one" +TestMain.cpp:474: text[1] == "two" succeeded for: "two" == "two" +TestMain.cpp:475: text[2] == "three" succeeded for: "three" == "three" +TestMain.cpp:476: text[3] == "four" succeeded for: "four" == "four" [End of section: 'As container' All 5 assertions passed] [End of section: 'plain string' All 5 assertions passed] [Started section: 'plain string'] [Started section: 'Indent first line differently'] -TestMain.cpp:476: text.toString() == " one two\n three\n four" succeeded for: +TestMain.cpp:483: text.toString() == " one two\n three\n four" succeeded for: " one two three four" @@ -14747,19 +14747,19 @@ TestMain.cpp:476: text.toString() == " one two\n three\n four" succeeded f [Started section: 'With newlines'] [Started section: 'No wrapping'] -TestMain.cpp:487: Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString succeeded for: +TestMain.cpp:494: Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString succeeded for: "one two three four" == "one two three four" -TestMain.cpp:488: Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString succeeded for: +TestMain.cpp:495: Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString succeeded for: "one two three four" == "one two three four" -TestMain.cpp:489: Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString succeeded for: +TestMain.cpp:496: Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString succeeded for: "one two three four" == @@ -14771,13 +14771,13 @@ three four" [Started section: 'With newlines'] [Started section: 'Trailing newline'] -TestMain.cpp:492: Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n" succeeded for: "abcdef +TestMain.cpp:499: Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n" succeeded for: "abcdef " == "abcdef " -TestMain.cpp:493: Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" succeeded for: "abcdef" == "abcdef" -TestMain.cpp:494: Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n" succeeded for: "abcdef +TestMain.cpp:500: Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" succeeded for: "abcdef" == "abcdef" +TestMain.cpp:501: Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n" succeeded for: "abcdef " == "abcdef @@ -14788,7 +14788,7 @@ TestMain.cpp:494: Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() [Started section: 'With newlines'] [Started section: 'Wrapped once'] -TestMain.cpp:497: Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" succeeded for: +TestMain.cpp:504: Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" succeeded for: "one two three four" @@ -14796,7 +14796,7 @@ four" "one two three four" -TestMain.cpp:498: Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" succeeded for: +TestMain.cpp:505: Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" succeeded for: "one two three four" @@ -14804,7 +14804,7 @@ four" "one two three four" -TestMain.cpp:499: Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" succeeded for: +TestMain.cpp:506: Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" succeeded for: "one two three four" @@ -14818,7 +14818,7 @@ four" [Started section: 'With newlines'] [Started section: 'Wrapped twice'] -TestMain.cpp:502: Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" succeeded for: +TestMain.cpp:509: Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" succeeded for: "one two three @@ -14833,7 +14833,7 @@ four" [End of section: 'With newlines' 1 assertion passed] [Started section: 'With tabs'] -TestMain.cpp:512: Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six" succeeded for: +TestMain.cpp:519: Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six" succeeded for: "one two three four five @@ -14856,8 +14856,8 @@ No assertions in test case, 'Strings can be rendered with colour' [Finished: 'Strings can be rendered with colour' 1 test case failed (1 assertion failed)] [Running: Text can be formatted using the Text class] -TestMain.cpp:612: Text( "hi there" ).toString() == "hi there" succeeded for: "hi there" == "hi there" -TestMain.cpp:617: Text( "hi there", narrow ).toString() == "hi\nthere" succeeded for: "hi +TestMain.cpp:619: Text( "hi there" ).toString() == "hi there" succeeded for: "hi there" == "hi there" +TestMain.cpp:624: Text( "hi there", narrow ).toString() == "hi\nthere" succeeded for: "hi there" == "hi diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp index a0d941fc..626c026b 100644 --- a/projects/SelfTest/TestMain.cpp +++ b/projects/SelfTest/TestMain.cpp @@ -108,54 +108,60 @@ TEST_CASE( "selftest/parser/2", "ConfigData" ) { const char* argv[] = { "test", "-t", "test1" }; CHECK_NOTHROW( parseIntoConfig( argv, config ) ); - REQUIRE( config.filters.size() == 1 ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) ); + Catch::Config cfg( config ); + REQUIRE( cfg.filters().size() == 1 ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) ); } SECTION( "-t/exclude:1", "Specify one test case exclusion using -t exclude:" ) { const char* argv[] = { "test", "-t", "exclude:test1" }; CHECK_NOTHROW( parseIntoConfig( argv, config ) ); - REQUIRE( config.filters.size() == 1 ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ); + Catch::Config cfg( config ); + REQUIRE( cfg.filters().size() == 1 ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ); } SECTION( "--test/1", "Specify one test case using --test" ) { const char* argv[] = { "test", "--test", "test1" }; CHECK_NOTHROW( parseIntoConfig( argv, config ) ); - REQUIRE( config.filters.size() == 1 ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) ); + Catch::Config cfg( config ); + REQUIRE( cfg.filters().size() == 1 ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) ); } SECTION( "--test/exclude:1", "Specify one test case exclusion using --test exclude:" ) { const char* argv[] = { "test", "--test", "exclude:test1" }; CHECK_NOTHROW( parseIntoConfig( argv, config ) ); - REQUIRE( config.filters.size() == 1 ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ); + Catch::Config cfg( config ); + REQUIRE( cfg.filters().size() == 1 ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ); } SECTION( "--test/exclude:2", "Specify one test case exclusion using --test ~" ) { const char* argv[] = { "test", "--test", "~test1" }; CHECK_NOTHROW( parseIntoConfig( argv, config ) ); - REQUIRE( config.filters.size() == 1 ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ); + Catch::Config cfg( config ); + REQUIRE( cfg.filters().size() == 1 ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) ); } SECTION( "-t/2", "Specify two test cases using -t" ) { const char* argv[] = { "test", "-t", "test1", "test2" }; CHECK_NOTHROW( parseIntoConfig( argv, config ) ); - REQUIRE( config.filters.size() == 1 ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test2" ) ) ); + Catch::Config cfg( config ); + REQUIRE( cfg.filters().size() == 1 ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test2" ) ) ); } SECTION( "-t/0", "When no test names are supplied it is an error" ) { @@ -351,9 +357,10 @@ TEST_CASE( "selftest/option parsers", "" ) CHECK_NOTHROW( opt.parseIntoConfig( parser, config ) ); - REQUIRE( config.filters.size() == 1 ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ); - REQUIRE( config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) ); + Catch::Config cfg( config ); + REQUIRE( cfg.filters().size() == 1 ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false ); + REQUIRE( cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) ); } TEST_CASE( "selftest/tags", "" ) {