From 994e64c2170efeb9cba6c310ddecdd7366c771f9 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Thu, 29 Nov 2012 08:49:32 +0000 Subject: [PATCH] Added xml and junit output - also fixed a typo in a test name --- approvalTests.py | 2 + projects/SelfTest/Baselines/results.txt | 5474 ++++++++++++++++- .../CatchSelfTest/CatchSelfTest/BDDTests.cpp | 2 +- 3 files changed, 5475 insertions(+), 3 deletions(-) diff --git a/approvalTests.py b/approvalTests.py index bb6f1222..09a104d9 100644 --- a/approvalTests.py +++ b/approvalTests.py @@ -15,6 +15,8 @@ cmdPath = sys.argv[1] f = open( rawResultsPath, 'w' ) subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions" ], stdout=f, stderr=f ) +subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "junit" ], stdout=f, stderr=f ) +subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "xml" ], stdout=f, stderr=f ) f.close() rawFile = open( rawResultsPath, 'r' ) diff --git a/projects/SelfTest/Baselines/results.txt b/projects/SelfTest/Baselines/results.txt index 0767ebcd..8b19b879 100644 --- a/projects/SelfTest/Baselines/results.txt +++ b/projects/SelfTest/Baselines/results.txt @@ -1424,9 +1424,9 @@ TrickyTests.cpp:315: !False succeeded for: !false [Running: scenario name] [Started section: 'This stuff exists'] [Started section: 'I do this'] -[Started section: 'it should this this'] +[Started section: 'it should do this'] BDDTests.cpp:37: itDoesThis() succeeded for: true -[End of section: 'it should this this' 1 assertion passed] +[End of section: 'it should do this' 1 assertion passed] [End of section: 'I do this' 1 assertion passed] @@ -1438,3 +1438,5473 @@ BDDTests.cpp:37: itDoesThis() succeeded for: true [Testing completed. 45 of 98 test cases failed (103 of 615 assertions failed)] + + + + + + + + + + + +ClassTests.cpp:28: + + + + + +ClassTests.cpp:55: + + + + + +ConditionTests.cpp:71: + + +ConditionTests.cpp:72: + + +ConditionTests.cpp:73: + + +ConditionTests.cpp:74: + + +ConditionTests.cpp:75: + + +ConditionTests.cpp:76: + + +ConditionTests.cpp:77: + + +ConditionTests.cpp:78: + + +ConditionTests.cpp:79: + + +ConditionTests.cpp:80: + + +ConditionTests.cpp:81: + + +ConditionTests.cpp:82: + + +ConditionTests.cpp:85: + + + + + +ConditionTests.cpp:111: + + +ConditionTests.cpp:112: + + +ConditionTests.cpp:113: + + +ConditionTests.cpp:114: + + +ConditionTests.cpp:115: + + + + + +ConditionTests.cpp:152: + + +ConditionTests.cpp:153: + + +ConditionTests.cpp:154: + + +ConditionTests.cpp:155: + + +ConditionTests.cpp:156: + + +ConditionTests.cpp:157: + + +ConditionTests.cpp:159: + + +ConditionTests.cpp:160: + + +ConditionTests.cpp:162: + + +ConditionTests.cpp:163: + + +ConditionTests.cpp:164: + + +ConditionTests.cpp:166: + + +ConditionTests.cpp:167: + + +ConditionTests.cpp:168: + + +ConditionTests.cpp:169: + + +ConditionTests.cpp:170: + + +ConditionTests.cpp:171: + + +ConditionTests.cpp:173: + + +ConditionTests.cpp:174: + + + + + + + + + + + +ConditionTests.cpp:334: + + +ConditionTests.cpp:335: + + +ConditionTests.cpp:336: + + +ConditionTests.cpp:337: + + +ConditionTests.cpp:339: + + +ConditionTests.cpp:340: + + +ConditionTests.cpp:342: + + +ConditionTests.cpp:343: + + + + + +ExceptionTests.cpp:47: + + < message="thisDoesntThrow()" type="CHECK_THROWS_AS"> +ExceptionTests.cpp:48: + + +ExceptionTests.cpp:49: + + + + +ExceptionTests.cpp:52: + + + + +ExceptionTests.cpp:60: + + + + + +ExceptionTests.cpp:102: + + + + +ExceptionTests.cpp:109: + + + + +ExceptionTests.cpp:114: + + + + +ExceptionTests.cpp:118: + + + + +ExceptionTests.cpp:132: + + + + + + + +MessageTests.cpp:14: + + + + + +MessageTests.cpp:23: + + +MessageTests.cpp:24: + + +MessageTests.cpp:26: + + + + +MessageTests.cpp:31: + + +MessageTests.cpp:35: + + +MessageTests.cpp:37: + + +MessageTests.cpp:39: + + +MessageTests.cpp:41: + + + + +MessageTests.cpp:51: + + + + +MessageTests.cpp:58: + + +MessageTests.cpp:63: + + + + +Message from section one +Message from section two + + + + +MessageTests.cpp:86: + + +MessageTests.cpp:86: + + +MessageTests.cpp:86: + + + + +MessageTests.cpp:92: + + + + + + +MiscTests.cpp:61: + + + + + + +MiscTests.cpp:133: + + + + +MiscTests.cpp:144: + + +MiscTests.cpp:145: + + +MiscTests.cpp:144: + + +MiscTests.cpp:145: + + +MiscTests.cpp:144: + + +MiscTests.cpp:144: + + +MiscTests.cpp:145: + + +MiscTests.cpp:144: + + +MiscTests.cpp:145: + + +MiscTests.cpp:144: + + +MiscTests.cpp:144: + + +MiscTests.cpp:145: + + +MiscTests.cpp:144: + + +MiscTests.cpp:145: + + + + +Some information + + +An error + + + + + +MiscTests.cpp:169: + + +MiscTests.cpp:171: + + +MiscTests.cpp:172: + + + + + +MiscTests.cpp:177: + + +MiscTests.cpp:190: + + + + + +MiscTests.cpp:195: + + +MiscTests.cpp:208: + + + + + +MiscTests.cpp:225: + + +MiscTests.cpp:226: + + + + + + +MiscTests.cpp:255: + + + + +MiscTests.cpp:260: + + + + +MiscTests.cpp:265: + + + + +MiscTests.cpp:270: + + + + + + + + + +MiscTests.cpp:309: + + + + + + +Message from section one +Message from section two +Some information +Message from section one +Message from section two +Some information + + +An error +An error + + + + + + + + + + + + + +TrickyTests.cpp:55: + + + + +TrickyTests.cpp:71: + + + + +TrickyTests.cpp:95: + + +TrickyTests.cpp:96: + + + + +TrickyTests.cpp:106: + + + + + + + + + + + + +Message from section one +Message from section two + +Some information + +Message from section one +Message from section two +Some information +Message from section one +Message from section two +Some information + + +An error + +An error +An error + + + + + +ApproxTests.cpp" line="20"> + + d == Approx( 1.23 ) + + + 1.23 == Approx( 1.23 ) + + +ApproxTests.cpp" line="21"> + + d != Approx( 1.22 ) + + + 1.23 != Approx( 1.22 ) + + +ApproxTests.cpp" line="22"> + + d != Approx( 1.24 ) + + + 1.23 != Approx( 1.24 ) + + +ApproxTests.cpp" line="24"> + + Approx( d ) == 1.23 + + + Approx( 1.23 ) == 1.23 + + +ApproxTests.cpp" line="25"> + + Approx( d ) != 1.22 + + + Approx( 1.23 ) != 1.22 + + +ApproxTests.cpp" line="26"> + + Approx( d ) != 1.24 + + + Approx( 1.23 ) != 1.24 + + + + + +ApproxTests.cpp" line="38"> + + d != Approx( 1.231 ) + + + 1.23 != Approx( 1.231 ) + + +ApproxTests.cpp" line="39"> + + d == Approx( 1.231 ).epsilon( 0.1 ) + + + 1.23 == Approx( 1.231 ) + + + + + +ApproxTests.cpp" line="49"> + + 1.23f == Approx( 1.23f ) + + + 1.23 == Approx( 1.23 ) + + +ApproxTests.cpp" line="50"> + + 0.0f == Approx( 0.0f ) + + + 0 == Approx( 0 ) + + + + + +ApproxTests.cpp" line="60"> + + 1 == Approx( 1 ) + + + 1 == Approx( 1 ) + + +ApproxTests.cpp" line="61"> + + 0 == Approx( 0 ) + + + 0 == Approx( 0 ) + + + + + +ApproxTests.cpp" line="75"> + + 1.0f == Approx( 1 ) + + + 1 == Approx( 1 ) + + +ApproxTests.cpp" line="76"> + + 0 == Approx( dZero) + + + 0 == Approx( 0 ) + + +ApproxTests.cpp" line="77"> + + 0 == Approx( dSmall ).epsilon( 0.001 ) + + + 0 == Approx( 1e-05 ) + + +ApproxTests.cpp" line="78"> + + 1.234f == Approx( dMedium ) + + + 1.234 == Approx( 1.234 ) + + +ApproxTests.cpp" line="79"> + + dMedium == Approx( 1.234f ) + + + 1.234 == Approx( 1.234 ) + + + + + +ApproxTests.cpp" line="93"> + + d == approx( 1.23 ) + + + 1.23 == Approx( 1.23 ) + + +ApproxTests.cpp" line="94"> + + d == approx( 1.22 ) + + + 1.23 == Approx( 1.22 ) + + +ApproxTests.cpp" line="95"> + + d == approx( 1.24 ) + + + 1.23 == Approx( 1.24 ) + + +ApproxTests.cpp" line="96"> + + d != approx( 1.25 ) + + + 1.23 != Approx( 1.25 ) + + +ApproxTests.cpp" line="98"> + + approx( d ) == 1.23 + + + Approx( 1.23 ) == 1.23 + + +ApproxTests.cpp" line="99"> + + approx( d ) == 1.22 + + + Approx( 1.23 ) == 1.22 + + +ApproxTests.cpp" line="100"> + + approx( d ) == 1.24 + + + Approx( 1.23 ) == 1.24 + + +ApproxTests.cpp" line="101"> + + approx( d ) != 1.25 + + + Approx( 1.23 ) != 1.25 + + + + + +ClassTests.cpp" line="24"> + + s == "hello" + + + "hello" == "hello" + + + + + +ClassTests.cpp" line="28"> + + s == "world" + + + "hello" == "world" + + + + + +ClassTests.cpp" line="47"> + + m_a == 1 + + + 1 == 1 + + + + + +ClassTests.cpp" line="55"> + + m_a == 2 + + + 1 == 2 + + + + + +ConditionTests.cpp" line="55"> + + data.int_seven == 7 + + + 7 == 7 + + +ConditionTests.cpp" line="56"> + + data.float_nine_point_one == Approx( 9.1f ) + + + 9.1 == Approx( 9.1 ) + + +ConditionTests.cpp" line="57"> + + data.double_pi == Approx( 3.1415926535 ) + + + 3.14159 == Approx( 3.14159 ) + + +ConditionTests.cpp" line="58"> + + data.str_hello == "hello" + + + "hello" == "hello" + + +ConditionTests.cpp" line="59"> + + "hello" == data.str_hello + + + "hello" == "hello" + + +ConditionTests.cpp" line="60"> + + data.str_hello.size() == 5 + + + 5 == 5 + + +ConditionTests.cpp" line="63"> + + x == Approx( 1.3 ) + + + 1.3 == Approx( 1.3 ) + + + + + +ConditionTests.cpp" line="71"> + + data.int_seven == 6 + + + 7 == 6 + + +ConditionTests.cpp" line="72"> + + data.int_seven == 8 + + + 7 == 8 + + +ConditionTests.cpp" line="73"> + + data.int_seven == 0 + + + 7 == 0 + + +ConditionTests.cpp" line="74"> + + data.float_nine_point_one == Approx( 9.11f ) + + + 9.1 == Approx( 9.11 ) + + +ConditionTests.cpp" line="75"> + + data.float_nine_point_one == Approx( 9.0f ) + + + 9.1 == Approx( 9 ) + + +ConditionTests.cpp" line="76"> + + data.float_nine_point_one == Approx( 1 ) + + + 9.1 == Approx( 1 ) + + +ConditionTests.cpp" line="77"> + + data.float_nine_point_one == Approx( 0 ) + + + 9.1 == Approx( 0 ) + + +ConditionTests.cpp" line="78"> + + data.double_pi == Approx( 3.1415 ) + + + 3.14159 == Approx( 3.1415 ) + + +ConditionTests.cpp" line="79"> + + data.str_hello == "goodbye" + + + "hello" == "goodbye" + + +ConditionTests.cpp" line="80"> + + data.str_hello == "hell" + + + "hello" == "hell" + + +ConditionTests.cpp" line="81"> + + data.str_hello == "hello1" + + + "hello" == "hello1" + + +ConditionTests.cpp" line="82"> + + data.str_hello.size() == 6 + + + 5 == 6 + + +ConditionTests.cpp" line="85"> + + x == Approx( 1.301 ) + + + 1.3 == Approx( 1.301 ) + + + + + +ConditionTests.cpp" line="93"> + + data.int_seven != 6 + + + 7 != 6 + + +ConditionTests.cpp" line="94"> + + data.int_seven != 8 + + + 7 != 8 + + +ConditionTests.cpp" line="95"> + + data.float_nine_point_one != Approx( 9.11f ) + + + 9.1 != Approx( 9.11 ) + + +ConditionTests.cpp" line="96"> + + data.float_nine_point_one != Approx( 9.0f ) + + + 9.1 != Approx( 9 ) + + +ConditionTests.cpp" line="97"> + + data.float_nine_point_one != Approx( 1 ) + + + 9.1 != Approx( 1 ) + + +ConditionTests.cpp" line="98"> + + data.float_nine_point_one != Approx( 0 ) + + + 9.1 != Approx( 0 ) + + +ConditionTests.cpp" line="99"> + + data.double_pi != Approx( 3.1415 ) + + + 3.14159 != Approx( 3.1415 ) + + +ConditionTests.cpp" line="100"> + + data.str_hello != "goodbye" + + + "hello" != "goodbye" + + +ConditionTests.cpp" line="101"> + + data.str_hello != "hell" + + + "hello" != "hell" + + +ConditionTests.cpp" line="102"> + + data.str_hello != "hello1" + + + "hello" != "hello1" + + +ConditionTests.cpp" line="103"> + + data.str_hello.size() != 6 + + + 5 != 6 + + + + + +ConditionTests.cpp" line="111"> + + data.int_seven != 7 + + + 7 != 7 + + +ConditionTests.cpp" line="112"> + + data.float_nine_point_one != Approx( 9.1f ) + + + 9.1 != Approx( 9.1 ) + + +ConditionTests.cpp" line="113"> + + data.double_pi != Approx( 3.1415926535 ) + + + 3.14159 != Approx( 3.14159 ) + + +ConditionTests.cpp" line="114"> + + data.str_hello != "hello" + + + "hello" != "hello" + + +ConditionTests.cpp" line="115"> + + data.str_hello.size() != 5 + + + 5 != 5 + + + + + +ConditionTests.cpp" line="124"> + + data.int_seven < 8 + + + 7 < 8 + + +ConditionTests.cpp" line="125"> + + data.int_seven > 6 + + + 7 > 6 + + +ConditionTests.cpp" line="126"> + + data.int_seven > 0 + + + 7 > 0 + + +ConditionTests.cpp" line="127"> + + data.int_seven > -1 + + + 7 > -1 + + +ConditionTests.cpp" line="129"> + + data.int_seven >= 7 + + + 7 >= 7 + + +ConditionTests.cpp" line="130"> + + data.int_seven >= 6 + + + 7 >= 6 + + +ConditionTests.cpp" line="131"> + + data.int_seven <= 7 + + + 7 <= 7 + + +ConditionTests.cpp" line="132"> + + data.int_seven <= 8 + + + 7 <= 8 + + +ConditionTests.cpp" line="134"> + + data.float_nine_point_one > 9 + + + 9.1 > 9 + + +ConditionTests.cpp" line="135"> + + data.float_nine_point_one < 10 + + + 9.1 < 10 + + +ConditionTests.cpp" line="136"> + + data.float_nine_point_one < 9.2 + + + 9.1 < 9.2 + + +ConditionTests.cpp" line="138"> + + data.str_hello <= "hello" + + + "hello" <= "hello" + + +ConditionTests.cpp" line="139"> + + data.str_hello >= "hello" + + + "hello" >= "hello" + + +ConditionTests.cpp" line="141"> + + data.str_hello < "hellp" + + + "hello" < "hellp" + + +ConditionTests.cpp" line="142"> + + data.str_hello < "zebra" + + + "hello" < "zebra" + + +ConditionTests.cpp" line="143"> + + data.str_hello > "hellm" + + + "hello" > "hellm" + + +ConditionTests.cpp" line="144"> + + data.str_hello > "a" + + + "hello" > "a" + + + + + +ConditionTests.cpp" line="152"> + + data.int_seven > 7 + + + 7 > 7 + + +ConditionTests.cpp" line="153"> + + data.int_seven < 7 + + + 7 < 7 + + +ConditionTests.cpp" line="154"> + + data.int_seven > 8 + + + 7 > 8 + + +ConditionTests.cpp" line="155"> + + data.int_seven < 6 + + + 7 < 6 + + +ConditionTests.cpp" line="156"> + + data.int_seven < 0 + + + 7 < 0 + + +ConditionTests.cpp" line="157"> + + data.int_seven < -1 + + + 7 < -1 + + +ConditionTests.cpp" line="159"> + + data.int_seven >= 8 + + + 7 >= 8 + + +ConditionTests.cpp" line="160"> + + data.int_seven <= 6 + + + 7 <= 6 + + +ConditionTests.cpp" line="162"> + + data.float_nine_point_one < 9 + + + 9.1 < 9 + + +ConditionTests.cpp" line="163"> + + data.float_nine_point_one > 10 + + + 9.1 > 10 + + +ConditionTests.cpp" line="164"> + + data.float_nine_point_one > 9.2 + + + 9.1 > 9.2 + + +ConditionTests.cpp" line="166"> + + data.str_hello > "hello" + + + "hello" > "hello" + + +ConditionTests.cpp" line="167"> + + data.str_hello < "hello" + + + "hello" < "hello" + + +ConditionTests.cpp" line="168"> + + data.str_hello > "hellp" + + + "hello" > "hellp" + + +ConditionTests.cpp" line="169"> + + data.str_hello > "z" + + + "hello" > "z" + + +ConditionTests.cpp" line="170"> + + data.str_hello < "hellm" + + + "hello" < "hellm" + + +ConditionTests.cpp" line="171"> + + data.str_hello < "a" + + + "hello" < "a" + + +ConditionTests.cpp" line="173"> + + data.str_hello >= "z" + + + "hello" >= "z" + + +ConditionTests.cpp" line="174"> + + data.str_hello <= "a" + + + "hello" <= "a" + + + + + +ConditionTests.cpp" line="188"> + + i == 1 + + + 1 == 1 + + +ConditionTests.cpp" line="189"> + + ui == 2 + + + 2 == 2 + + +ConditionTests.cpp" line="190"> + + l == 3 + + + 3 == 3 + + +ConditionTests.cpp" line="191"> + + ul == 4 + + + 4 == 4 + + +ConditionTests.cpp" line="192"> + + c == 5 + + + 5 == 5 + + +ConditionTests.cpp" line="193"> + + uc == 6 + + +  == 6 + + +ConditionTests.cpp" line="195"> + + 1 == i + + + 1 == 1 + + +ConditionTests.cpp" line="196"> + + 2 == ui + + + 2 == 2 + + +ConditionTests.cpp" line="197"> + + 3 == l + + + 3 == 3 + + +ConditionTests.cpp" line="198"> + + 4 == ul + + + 4 == 4 + + +ConditionTests.cpp" line="199"> + + 5 == c + + + 5 == 5 + + +ConditionTests.cpp" line="200"> + + 6 == uc + + + 6 ==  + + +ConditionTests.cpp" line="202"> + + (std::numeric_limits<unsigned long>::max)() > ul + + + 0x > 4 + + + + + +ConditionTests.cpp" line="223"> + + long_var == unsigned_char_var + + + 1 ==  + + +ConditionTests.cpp" line="224"> + + long_var == unsigned_short_var + + + 1 == 1 + + +ConditionTests.cpp" line="225"> + + long_var == unsigned_int_var + + + 1 == 1 + + +ConditionTests.cpp" line="226"> + + long_var == unsigned_long_var + + + 1 == 1 + + + + + +ConditionTests.cpp" line="237"> + + unsigned_char_var == 1 + + +  == 1 + + +ConditionTests.cpp" line="238"> + + unsigned_short_var == 1 + + + 1 == 1 + + +ConditionTests.cpp" line="239"> + + unsigned_int_var == 1 + + + 1 == 1 + + +ConditionTests.cpp" line="240"> + + unsigned_long_var == 1 + + + 1 == 1 + + + + + +ConditionTests.cpp" line="246"> + + ( -1 > 2u ) + + + true + + +ConditionTests.cpp" line="247"> + + -1 > 2u + + + -1 > 2 + + +ConditionTests.cpp" line="249"> + + ( 2u < -1 ) + + + true + + +ConditionTests.cpp" line="250"> + + 2u < -1 + + + 2 < -1 + + +ConditionTests.cpp" line="253"> + + ( minInt > 2u ) + + + true + + +ConditionTests.cpp" line="254"> + + minInt > 2u + + + -2147483648 > 2 + + + + + +ConditionTests.cpp" line="269"> + + 54 == 6*9 + + + 54 == 54 + + + + + +ConditionTests.cpp" line="285"> + + p == __null + + + __null == 0 + + +ConditionTests.cpp" line="286"> + + p == pNULL + + + __null == __null + + +ConditionTests.cpp" line="291"> + + p != __null + + + 0x != 0 + + +ConditionTests.cpp" line="294"> + + cp != __null + + + 0x != 0 + + +ConditionTests.cpp" line="297"> + + cpc != __null + + + 0x != 0 + + +ConditionTests.cpp" line="299"> + + returnsNull() == __null + + + {null string} == 0 + + +ConditionTests.cpp" line="300"> + + returnsConstNull() == __null + + + {null string} == 0 + + +ConditionTests.cpp" line="302"> + + __null != p + + + 0 != 0x + + + + + +ConditionTests.cpp" line="317"> + + false == false + + + false == false + + +ConditionTests.cpp" line="318"> + + true == true + + + true == true + + +ConditionTests.cpp" line="319"> + + !false + + + true + + +ConditionTests.cpp" line="320"> + + !false + + + !false + + +ConditionTests.cpp" line="322"> + + !falseValue + + + true + + +ConditionTests.cpp" line="323"> + + !falseValue + + + !false + + +ConditionTests.cpp" line="325"> + + !(1 == 2) + + + true + + +ConditionTests.cpp" line="326"> + + !1 == 2 + + + !(1 == 2) + + + + + +ConditionTests.cpp" line="334"> + + false != false + + + false != false + + +ConditionTests.cpp" line="335"> + + true != true + + + true != true + + +ConditionTests.cpp" line="336"> + + !true + + + false + + +ConditionTests.cpp" line="337"> + + !true + + + !true + + +ConditionTests.cpp" line="339"> + + !trueValue + + + false + + +ConditionTests.cpp" line="340"> + + !trueValue + + + !true + + +ConditionTests.cpp" line="342"> + + !(1 == 1) + + + false + + +ConditionTests.cpp" line="343"> + + !1 == 1 + + + !(1 == 1) + + + + + +ExceptionTests.cpp" line="39"> + + thisThrows() + + + thisThrows() + + +ExceptionTests.cpp" line="40"> + + thisDoesntThrow() + + + thisDoesntThrow() + + +ExceptionTests.cpp" line="41"> + + thisThrows() + + + thisThrows() + + + + + +ExceptionTests.cpp" line="47"> + + thisThrows() + + + thisThrows() + +ExceptionTests.cpp" line="47"> + expected exception + + +ExceptionTests.cpp" line="48"> + + thisDoesntThrow() + + + thisDoesntThrow() + + +ExceptionTests.cpp" line="49"> + + thisThrows() + + + thisThrows() + +ExceptionTests.cpp" line="49"> + expected exception + + + + + +ExceptionTests.cpp" line="52"> + unexpected exception + + + + +ExceptionTests.cpp" line="60"> + + 1 == 1 + + + 1 == 1 + + +ExceptionTests.cpp" line="60"> + + {Unknown expression after this line} + + + {Unknown expression after this line} + +ExceptionTests.cpp" line="60"> + unexpected exception + + + + + + + + +ExceptionTests.cpp" line="102"> + custom exception + + + + +ExceptionTests.cpp" line="109"> + + throw CustomException( "unexpected custom exception" ) + + + throw CustomException( "unexpected custom exception" ) + +ExceptionTests.cpp" line="109"> + unexpected custom exception + + + + + +ExceptionTests.cpp" line="114"> + + throw CustomException( "custom exception - not std" ) + + + throw CustomException( "custom exception - not std" ) + +ExceptionTests.cpp" line="114"> + custom exception - not std + + + + + +ExceptionTests.cpp" line="118"> + 3.14 + + + + +
+
+ +
+ +
+ExceptionTests.cpp" line="132"> + Exception from section + +
+ +
+ +
+ +
+ExceptionTests.cpp" line="152"> + + runner.getLog() Contains( "custom exception" ) + + + "\[g] ./failing/exceptions/custom + \[tc] ./failing/exceptions/custom +ExceptionTests.cpp:102: ThrewException'custom exception' /[tc] ./failing/exceptions/custom +/[g] ./failing/exceptions/custom +" contains: "custom exception" + + + +
+
+ExceptionTests.cpp" line="160"> + + runner.getLog() Contains( "Exception from section" ) + + + "\[g] ./failing/exceptions/in-section + \[tc] ./failing/exceptions/in-section + \ [s] the section + \ [s] the section2 + / [s] the section2 + / [s] the section +ExceptionTests.cpp:132: ThrewException'Exception from section' \ [s] the section + / [s] the section + /[tc] ./failing/exceptions/in-section +/[g] ./failing/exceptions/in-section +" contains: "Exception from section" + + +ExceptionTests.cpp" line="161"> + + runner.getLog() Contains( ::Catch::LineInfoRegistry::get().infoForName( "the section2" ) ) + + + "\[g] ./failing/exceptions/in-section + \[tc] ./failing/exceptions/in-section + \ [s] the section + \ [s] the section2 + / [s] the section2 + / [s] the section +ExceptionTests.cpp:132: ThrewException'Exception from section' \ [s] the section + / [s] the section + /[tc] ./failing/exceptions/in-section +/[g] ./failing/exceptions/in-section +ExceptionTests.cpp:132: " + + + +
+ +
+ +ExceptionTests.cpp" line="172"> + + thisFunctionNotImplemented( 7 ) + + + thisFunctionNotImplemented( 7 ) + + + + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 2 == 2 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 200 == 200 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 4 == 4 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 200 == 200 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 6 == 6 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 200 == 200 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 8 == 8 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 200 == 200 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 10 == 10 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 200 == 200 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 30 == 30 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 200 == 200 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 40 == 40 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 200 == 200 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 42 == 42 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 200 == 200 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 72 == 72 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 200 == 200 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 2 == 2 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 202 == 202 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 4 == 4 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 202 == 202 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 6 == 6 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 202 == 202 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 8 == 8 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 202 == 202 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 10 == 10 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 202 == 202 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 30 == 30 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 202 == 202 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 40 == 40 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 202 == 202 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 42 == 42 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 202 == 202 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 72 == 72 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 202 == 202 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 2 == 2 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 204 == 204 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 4 == 4 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 204 == 204 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 6 == 6 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 204 == 204 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 8 == 8 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 204 == 204 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 10 == 10 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 204 == 204 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 30 == 30 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 204 == 204 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 40 == 40 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 204 == 204 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 42 == 42 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 204 == 204 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 72 == 72 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 204 == 204 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 2 == 2 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 206 == 206 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 4 == 4 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 206 == 206 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 6 == 6 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 206 == 206 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 8 == 8 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 206 == 206 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 10 == 10 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 206 == 206 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 30 == 30 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 206 == 206 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 40 == 40 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 206 == 206 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 42 == 42 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 206 == 206 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 72 == 72 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 206 == 206 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 2 == 2 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 208 == 208 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 4 == 4 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 208 == 208 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 6 == 6 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 208 == 208 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 8 == 8 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 208 == 208 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 10 == 10 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 208 == 208 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 30 == 30 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 208 == 208 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 40 == 40 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 208 == 208 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 42 == 42 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 208 == 208 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 72 == 72 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 208 == 208 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 2 == 2 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 210 == 210 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 4 == 4 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 210 == 210 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 6 == 6 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 210 == 210 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 8 == 8 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 210 == 210 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 10 == 10 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 210 == 210 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 30 == 30 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 210 == 210 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 40 == 40 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 210 == 210 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 42 == 42 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 210 == 210 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 72 == 72 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 210 == 210 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 2 == 2 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 212 == 212 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 4 == 4 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 212 == 212 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 6 == 6 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 212 == 212 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 8 == 8 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 212 == 212 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 10 == 10 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 212 == 212 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 30 == 30 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 212 == 212 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 40 == 40 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 212 == 212 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 42 == 42 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 212 == 212 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 72 == 72 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 212 == 212 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 2 == 2 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 214 == 214 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 4 == 4 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 214 == 214 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 6 == 6 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 214 == 214 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 8 == 8 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 214 == 214 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 10 == 10 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 214 == 214 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 30 == 30 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 214 == 214 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 40 == 40 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 214 == 214 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 42 == 42 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 214 == 214 + + +GeneratorTests.cpp" line="26"> + + multiply( i, 2 ) == i*2 + + + 72 == 72 + + +GeneratorTests.cpp" line="27"> + + multiply( j, 2 ) == j*2 + + + 214 == 214 + + + + + + + this is a warning + + + + + + + + + this message should be logged + + + so should this + +MessageTests.cpp" line="26"> + + a == 1 + + + 2 == 1 + + + + + +MessageTests.cpp" line="33"> + + a == 2 + + + 2 == 2 + + + + this message should be logged + + + this message should be logged, too + +MessageTests.cpp" line="37"> + + a == 1 + + + 2 == 1 + + + + and this, but later + +MessageTests.cpp" line="41"> + + a == 0 + + + 2 == 0 + + +MessageTests.cpp" line="45"> + + a == 2 + + + 2 == 2 + + + + + + + This is a failure + + + + +
+ + Message from section one + + +
+
+ + Message from section two + + +
+ +
+ +
+ +
+
+ +
+ +
+ +MessageTests.cpp" line="86"> + + i < 10 + + + 0 < 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + 1 < 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + 2 < 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + 3 < 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + 4 < 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + 5 < 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + 6 < 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + 7 < 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + 8 < 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + 9 < 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + i < 10 + + + current counter 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + i < 10 + + + i := 10 + + +MessageTests.cpp" line="86"> + + i < 10 + + + 10 < 10 + + + + + +MessageTests.cpp" line="92"> + + 1 == 2 + + + 1 == 2 + + + + + +
+MiscTests.cpp" line="25"> + + a != b + + + 1 != 2 + + +MiscTests.cpp" line="26"> + + b != a + + + 2 != 1 + + + +
+
+MiscTests.cpp" line="31"> + + a != b + + + 1 != 2 + + + +
+ +
+ +
+MiscTests.cpp" line="42"> + + a != b + + + 1 != 2 + + +MiscTests.cpp" line="43"> + + b != a + + + 2 != 1 + + +
+MiscTests.cpp" line="47"> + + a != b + + + 1 != 2 + + + +
+ +
+ +
+ +
+
+MiscTests.cpp" line="61"> + + a == b + + + 1 == 2 + + + +
+ +
+
+
+MiscTests.cpp" line="66"> + + a != b + + + 1 != 2 + + + +
+ +
+
+
+MiscTests.cpp" line="70"> + + a < b + + + 1 < 2 + + + +
+ +
+ +
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ +
+ +
+ +MiscTests.cpp" line="119"> + + runner.getLog() == "\\[g] ./Sections/nested/a/b\n" " \\[tc] ./Sections/nested/a/b\n" " \\ [s] c\n" " \\ [s] d (leaf)\n" " / [s] d (leaf)\n" " / [s] c\n" " \\ [s] c\n" " \\ [s] e (leaf)\n" " / [s] e (leaf)\n" " / [s] c\n" " \\ [s] c\n" " / [s] c\n" " \\ [s] f (leaf)\n" " / [s] f (leaf)\n" " /[tc] ./Sections/nested/a/b\n" "/[g] ./Sections/nested/a/b\n" + + + +"\[g] ./Sections/nested/a/b + \[tc] ./Sections/nested/a/b + \ [s] c + \ [s] d (leaf) + / [s] d (leaf) + / [s] c + \ [s] c + \ [s] e (leaf) + / [s] e (leaf) + / [s] c + \ [s] c + / [s] c + \ [s] f (leaf) + / [s] f (leaf) + /[tc] ./Sections/nested/a/b +/[g] ./Sections/nested/a/b +" +== +"\[g] ./Sections/nested/a/b + \[tc] ./Sections/nested/a/b + \ [s] c + \ [s] d (leaf) + / [s] d (leaf) + / [s] c + \ [s] c + \ [s] e (leaf) + / [s] e (leaf) + / [s] c + \ [s] c + / [s] c + \ [s] f (leaf) + / [s] f (leaf) + /[tc] ./Sections/nested/a/b +/[g] ./Sections/nested/a/b +" + + + + + + + +
+MiscTests.cpp" line="133"> + + b > a + + + 0 > 1 + + + +
+ +
+ + + Testing if fib[0] (1) is even + +MiscTests.cpp" line="145"> + + ( fib[i] % 2 ) == 0 + + + 1 == 0 + + + + Testing if fib[1] (1) is even + +MiscTests.cpp" line="145"> + + ( fib[i] % 2 ) == 0 + + + 1 == 0 + + +MiscTests.cpp" line="145"> + + ( fib[i] % 2 ) == 0 + + + 0 == 0 + + + + Testing if fib[2] (2) is even + + + Testing if fib[3] (3) is even + +MiscTests.cpp" line="145"> + + ( fib[i] % 2 ) == 0 + + + 1 == 0 + + + + Testing if fib[4] (5) is even + +MiscTests.cpp" line="145"> + + ( fib[i] % 2 ) == 0 + + + 1 == 0 + + +MiscTests.cpp" line="145"> + + ( fib[i] % 2 ) == 0 + + + 0 == 0 + + + + Testing if fib[5] (8) is even + + + Testing if fib[6] (13) is even + +MiscTests.cpp" line="145"> + + ( fib[i] % 2 ) == 0 + + + 1 == 0 + + + + Testing if fib[7] (21) is even + +MiscTests.cpp" line="145"> + + ( fib[i] % 2 ) == 0 + + + 1 == 0 + + + + + + + + +MiscTests.cpp" line="163"> + + makeString( false ) != static_cast<char*>(__null) + + + "valid string" != {null string} + + +MiscTests.cpp" line="164"> + + makeString( true ) == static_cast<char*>(__null) + + + {null string} == {null string} + + + + + + + hi + + + i := 7 + +MiscTests.cpp" line="172"> + + false + + + false + + + + + +MiscTests.cpp" line="177"> + + flag + + + true + + +MiscTests.cpp" line="185"> + + testCheckedIf( true ) + + + true + + + + + +MiscTests.cpp" line="177"> + + flag + + + false + + +MiscTests.cpp" line="190"> + + testCheckedIf( false ) + + + false + + + + + +MiscTests.cpp" line="195"> + + flag + + + true + + +MiscTests.cpp" line="203"> + + testCheckedElse( true ) + + + true + + + + + +MiscTests.cpp" line="195"> + + flag + + + false + + +MiscTests.cpp" line="208"> + + testCheckedElse( false ) + + + false + + + + + +
+ +
+
+ +
+ +
+ + + 3 + +MiscTests.cpp" line="226"> + + false + + + false + + + + + +MiscTests.cpp" line="236"> + + x == 0 + + + 0 == 0 + + + + + +MiscTests.cpp" line="246"> + + testStringForMatching() Contains( "string" ) + + + "this string contains 'abc' as a substring" contains: "string" + + +MiscTests.cpp" line="247"> + + testStringForMatching() Contains( "abc" ) + + + "this string contains 'abc' as a substring" contains: "abc" + + +MiscTests.cpp" line="249"> + + testStringForMatching() StartsWith( "this" ) + + + "this string contains 'abc' as a substring" starts with: "this" + + +MiscTests.cpp" line="250"> + + testStringForMatching() EndsWith( "substring" ) + + + "this string contains 'abc' as a substring" ends with: "substring" + + + + + +MiscTests.cpp" line="255"> + + testStringForMatching() Contains( "not there" ) + + + "this string contains 'abc' as a substring" contains: "not there" + + + + + +MiscTests.cpp" line="260"> + + testStringForMatching() StartsWith( "string" ) + + + "this string contains 'abc' as a substring" starts with: "string" + + + + + +MiscTests.cpp" line="265"> + + testStringForMatching() EndsWith( "this" ) + + + "this string contains 'abc' as a substring" ends with: "this" + + + + + +MiscTests.cpp" line="270"> + + testStringForMatching() Equals( "something else" ) + + + "this string contains 'abc' as a substring" equals: "something else" + + + + + +MiscTests.cpp" line="275"> + + testStringForMatching() AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) ) + + + "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" ) + + + + + +MiscTests.cpp" line="279"> + + testStringForMatching() AnyOf( Catch::Contains( "string" ), Catch::Contains( "not there" ) ) + + + "this string contains 'abc' as a substring" ( contains: "string" or contains: "not there" ) + + +MiscTests.cpp" line="280"> + + testStringForMatching() AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) ) + + + "this string contains 'abc' as a substring" ( contains: "not there" or contains: "string" ) + + + + + +MiscTests.cpp" line="285"> + + testStringForMatching() Equals( "this string contains 'abc' as a substring" ) + + + "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" + + + + + +MiscTests.cpp" line="296"> + + Factorial(0) == 1 + + + 1 == 1 + + +MiscTests.cpp" line="297"> + + Factorial(1) == 1 + + + 1 == 1 + + +MiscTests.cpp" line="298"> + + Factorial(2) == 2 + + + 2 == 2 + + +MiscTests.cpp" line="299"> + + Factorial(3) == 6 + + + 6 == 6 + + +MiscTests.cpp" line="300"> + + Factorial(10) == 3628800 + + + 0x == 3628800 + + + + + + + + + + This one ran + + + + + + + + + + +
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+TestMain.cpp" line="40"> + + totals.assertions.passed == 294 + + + 294 == 294 + + +TestMain.cpp" line="41"> + + totals.assertions.failed == 0 + + + 0 == 0 + + + +
+ +
+
+
+TestMain.cpp" line="47"> + + totals.assertions.passed == 1 + + + 1 == 1 + + +TestMain.cpp" line="48"> + + totals.assertions.failed == 73 + + + 73 == 73 + + + +
+ +
+ +
+ +TestMain.cpp" line="57"> + + totals.assertions.passed == 2 + + + 2 == 2 + + +TestMain.cpp" line="58"> + + totals.assertions.failed == 1 + + + 1 == 1 + + + + + +
+TestMain.cpp" line="97"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="99"> + + config.shouldDebugBreak == false + + + false == false + + +TestMain.cpp" line="100"> + + config.cutoff == -1 + + + -1 == -1 + + +TestMain.cpp" line="101"> + + config.allowThrows == true + + + true == true + + +TestMain.cpp" line="102"> + + config.reporter.empty() + + + true + + + +
+
+
+TestMain.cpp" line="108"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="110"> + + config.filters.size() == 1 + + + 1 == 1 + + +TestMain.cpp" line="111"> + + config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false + + + false == false + + +TestMain.cpp" line="112"> + + config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) + + + true + + + +
+ +
+
+
+TestMain.cpp" line="116"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="118"> + + config.filters.size() == 1 + + + 1 == 1 + + +TestMain.cpp" line="119"> + + config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false + + + false == false + + +TestMain.cpp" line="120"> + + config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) + + + true + + + +
+ +
+
+
+TestMain.cpp" line="125"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="127"> + + config.filters.size() == 1 + + + 1 == 1 + + +TestMain.cpp" line="128"> + + config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false + + + false == false + + +TestMain.cpp" line="129"> + + config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) + + + true + + + +
+ +
+
+
+TestMain.cpp" line="134"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="136"> + + config.filters.size() == 1 + + + 1 == 1 + + +TestMain.cpp" line="137"> + + config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false + + + false == false + + +TestMain.cpp" line="138"> + + config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) + + + true + + + +
+ +
+
+
+TestMain.cpp" line="143"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="145"> + + config.filters.size() == 1 + + + 1 == 1 + + +TestMain.cpp" line="146"> + + config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) == false + + + false == false + + +TestMain.cpp" line="147"> + + config.filters[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) + + + true + + + +
+ +
+
+
+TestMain.cpp" line="152"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="154"> + + config.filters.size() == 1 + + + 1 == 1 + + +TestMain.cpp" line="155"> + + config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false + + + false == false + + +TestMain.cpp" line="156"> + + config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) + + + true + + +TestMain.cpp" line="157"> + + config.filters[0].shouldInclude( fakeTestCase( "test2" ) ) + + + true + + + +
+ +
+
+
+TestMain.cpp" line="162"> + + parseIntoConfigAndReturnError( argv, config ) Contains( "at least 1" ) + + + "Error while parsing arguments. Expected at least 1 argument." contains: "at least 1" + + + +
+ +
+
+ +
+
+
+TestMain.cpp" line="169"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="171"> + + config.reporter == "basic" + + + "basic" == "basic" + + + +
+ +
+
+
+TestMain.cpp" line="175"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="177"> + + config.reporter == "xml" + + + "xml" == "xml" + + + +
+ +
+
+
+TestMain.cpp" line="181"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="183"> + + config.reporter == "junit" + + + "junit" == "junit" + + + +
+ +
+
+
+TestMain.cpp" line="187"> + + parseIntoConfigAndReturnError( argv, config ) Contains( "1 argument" ) + + + "Error while parsing arguments. Expected 1 argument. Arguments were: one two" contains: "1 argument" + + + +
+ +
+
+ +
+
+
+TestMain.cpp" line="194"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="196"> + + config.shouldDebugBreak == true + + + true == true + + + +
+ +
+
+
+TestMain.cpp" line="200"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="202"> + + config.shouldDebugBreak + + + true + + + +
+ +
+
+
+TestMain.cpp" line="206"> + + parseIntoConfigAndReturnError( argv, config ) Contains( "0 arguments" ) + + + "Error while parsing arguments. Expected 0 arguments. Arguments were: unexpected" contains: "0 arguments" + + + +
+ +
+
+ +
+
+
+TestMain.cpp" line="213"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="215"> + + config.cutoff == 1 + + + 1 == 1 + + + +
+ +
+
+
+TestMain.cpp" line="219"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="221"> + + config.cutoff == 2 + + + 2 == 2 + + + +
+ +
+
+
+TestMain.cpp" line="225"> + + parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) + + + "Error while parsing arguments. threshold must be a number greater than zero. Arguments were: 0" contains: "greater than zero" + + + +
+ +
+
+
+TestMain.cpp" line="229"> + + parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) + + + "Error while parsing arguments. threshold must be a number greater than zero. Arguments were: oops" contains: "greater than zero" + + + +
+ +
+
+
+TestMain.cpp" line="233"> + + parseIntoConfigAndReturnError( argv, config ) Contains( "0 and 1 argument" ) + + + "Error while parsing arguments. Expected between 0 and 1 argument. Arguments were: 1 2" contains: "0 and 1 argument" + + + +
+ +
+
+ +
+
+
+TestMain.cpp" line="240"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="242"> + + config.allowThrows == false + + + false == false + + + +
+ +
+
+
+TestMain.cpp" line="246"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="248"> + + config.allowThrows == false + + + false == false + + + +
+ +
+
+ +
+
+
+TestMain.cpp" line="255"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="257"> + + config.outputFilename == "filename.ext" + + + "filename.ext" == "filename.ext" + + +TestMain.cpp" line="258"> + + config.stream.empty() + + + true + + + +
+ +
+
+
+TestMain.cpp" line="262"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="264"> + + config.stream == "stdout" + + + "stdout" == "stdout" + + +TestMain.cpp" line="265"> + + config.outputFilename.empty() + + + true + + + +
+ +
+
+
+TestMain.cpp" line="269"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="271"> + + config.outputFilename == "filename.ext" + + + "filename.ext" == "filename.ext" + + + +
+ +
+
+ +
+
+
+TestMain.cpp" line="278"> + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + +TestMain.cpp" line="280"> + + config.cutoff == 1 + + + 1 == 1 + + +TestMain.cpp" line="281"> + + config.shouldDebugBreak + + + true + + +TestMain.cpp" line="282"> + + config.allowThrows == false + + + false == false + + + +
+ +
+ +
+ +TestMain.cpp" line="291"> + + matchAny.shouldInclude( fakeTestCase( "any" ) ) + + + true + + +TestMain.cpp" line="292"> + + matchNone.shouldInclude( fakeTestCase( "any" ) ) == false + + + false == false + + +TestMain.cpp" line="297"> + + matchHidden.shouldInclude( fakeTestCase( "any" ) ) == false + + + false == false + + +TestMain.cpp" line="298"> + + matchNonHidden.shouldInclude( fakeTestCase( "any" ) ) + + + true + + +TestMain.cpp" line="300"> + + matchHidden.shouldInclude( fakeTestCase( "./any" ) ) + + + true + + +TestMain.cpp" line="301"> + + matchNonHidden.shouldInclude( fakeTestCase( "./any" ) ) == false + + + false == false + + + + + +TestMain.cpp" line="312"> + + matchHidden.shouldInclude( fakeTestCase( "./something" ) ) + + + true + + +TestMain.cpp" line="314"> + + filters.shouldInclude( fakeTestCase( "any" ) ) == false + + + false == false + + +TestMain.cpp" line="315"> + + filters.shouldInclude( fakeTestCase( "./something" ) ) + + + true + + +TestMain.cpp" line="316"> + + filters.shouldInclude( fakeTestCase( "./anything" ) ) == false + + + false == false + + + + + +TestMain.cpp" line="322"> + + matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) + + + true + + +TestMain.cpp" line="323"> + + matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) == false + + + false == false + + + + + +TestMain.cpp" line="328"> + + matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) + + + true + + +TestMain.cpp" line="329"> + + matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) + + + true + + +TestMain.cpp" line="330"> + + matchBadgers.shouldInclude( fakeTestCase( "badgers are big" ) ) + + + true + + +TestMain.cpp" line="331"> + + matchBadgers.shouldInclude( fakeTestCase( "hedgehogs" ) ) == false + + + false == false + + + + + +TestMain.cpp" line="351"> + + opt.parseIntoConfig( parser, config ) + + + opt.parseIntoConfig( parser, config ) + + +TestMain.cpp" line="353"> + + config.filters.size() == 1 + + + 1 == 1 + + +TestMain.cpp" line="354"> + + config.filters[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false + + + false == false + + +TestMain.cpp" line="355"> + + config.filters[0].shouldInclude( fakeTestCase( "test1" ) ) + + + true + + + + + +
+TestMain.cpp" line="369"> + + oneTag.getTestCaseInfo().description == "" + + + "" == "" + + +TestMain.cpp" line="370"> + + oneTag.hasTag( "one" ) + + + true + + +TestMain.cpp" line="371"> + + oneTag.getTags().size() == 1 + + + 1 == 1 + + +TestMain.cpp" line="373"> + + oneTag.matchesTags( p1 ) == true + + + true == true + + +TestMain.cpp" line="374"> + + oneTag.matchesTags( p2 ) == true + + + true == true + + +TestMain.cpp" line="375"> + + oneTag.matchesTags( p3 ) == false + + + false == false + + +TestMain.cpp" line="376"> + + oneTag.matchesTags( p4 ) == false + + + false == false + + +TestMain.cpp" line="377"> + + oneTag.matchesTags( p5 ) == false + + + false == false + + + +
+
+TestMain.cpp" line="383"> + + twoTags.getTestCaseInfo().description == "" + + + "" == "" + + +TestMain.cpp" line="384"> + + twoTags.hasTag( "one" ) + + + true + + +TestMain.cpp" line="385"> + + twoTags.hasTag( "two" ) + + + true + + +TestMain.cpp" line="386"> + + twoTags.hasTag( "three" ) == false + + + false == false + + +TestMain.cpp" line="387"> + + twoTags.getTags().size() == 2 + + + 2 == 2 + + +TestMain.cpp" line="389"> + + twoTags.matchesTags( p1 ) == true + + + true == true + + +TestMain.cpp" line="390"> + + twoTags.matchesTags( p2 ) == true + + + true == true + + +TestMain.cpp" line="391"> + + twoTags.matchesTags( p3 ) == true + + + true == true + + +TestMain.cpp" line="392"> + + twoTags.matchesTags( p4 ) == true + + + true == true + + +TestMain.cpp" line="393"> + + twoTags.matchesTags( p5 ) == true + + + true == true + + + +
+
+TestMain.cpp" line="399"> + + oneTagWithExtras.getTestCaseInfo().description == "1234" + + + "1234" == "1234" + + +TestMain.cpp" line="400"> + + oneTagWithExtras.hasTag( "one" ) + + + true + + +TestMain.cpp" line="401"> + + oneTagWithExtras.hasTag( "two" ) == false + + + false == false + + +TestMain.cpp" line="402"> + + oneTagWithExtras.getTags().size() == 1 + + + 1 == 1 + + + +
+
+TestMain.cpp" line="409"> + + oneTagOpen.getTestCaseInfo().description == "[one" + + + "[one" == "[one" + + +TestMain.cpp" line="410"> + + oneTagOpen.hasTag( "one" ) == false + + + false == false + + +TestMain.cpp" line="411"> + + oneTagOpen.getTags().size() == 0 + + + 0 == 0 + + + +
+
+TestMain.cpp" line="417"> + + oneTag.getTestCaseInfo().description == "" + + + "" == "" + + +TestMain.cpp" line="418"> + + oneTag.hasTag( "hide" ) + + + true + + +TestMain.cpp" line="419"> + + oneTag.isHidden() + + + true + + +TestMain.cpp" line="421"> + + oneTag.matchesTags( "~[hide]" ) == false + + + false == false + + + +
+ +
+ +TrickyTests.cpp" line="37"> + + (std::pair<int, int>( 1, 2 )) == aNicePair + + + + std::pair( 1, 2 ) + == + std::pair( 1, 2 ) + + + + + + + Uncomment the code in this test to check that it gives a sensible compiler error + + + + + + Uncomment the code in this test to check that it gives a sensible compiler error + + + + +TrickyTests.cpp" line="95"> + + &o1 == &o2 + + + 0x == 0x + + +TrickyTests.cpp" line="96"> + + o1 == o2 + + + {?} == {?} + + + + + +TrickyTests.cpp" line="106"> + + std::string( "first" ) == "second" + + + "first" == "second" + + + + + +TrickyTests.cpp" line="119"> + + i++ == 7 + + + 7 == 7 + + +TrickyTests.cpp" line="120"> + + i++ == 8 + + + 8 == 8 + + + + + +TrickyTests.cpp" line="186"> + + 0x == o + + + 0x == {?} + + + + + +TrickyTests.cpp" line="212"> + + t == 1u + + + {?} == 1 + + + + + +TrickyTests.cpp" line="224"> + + 0x == bit30and31 + + + 0x == 3221225472 + + + + + +TrickyTests.cpp" line="239"> + + obj.prop != __null + + + 0x != 0 + + + + + +
+TrickyTests.cpp" line="259"> + + is_true<true>::value == true + + + true == true + + +TrickyTests.cpp" line="260"> + + true == is_true<true>::value + + + true == true + + + +
+
+TrickyTests.cpp" line="264"> + + is_true<false>::value == false + + + false == false + + +TrickyTests.cpp" line="265"> + + false == is_true<false>::value + + + false == false + + + +
+
+TrickyTests.cpp" line="270"> + + !is_true<false>::value + + + true + + + +
+
+TrickyTests.cpp" line="275"> + + !!is_true<true>::value + + + true + + + +
+
+TrickyTests.cpp" line="280"> + + is_true<true>::value + + + true + + +TrickyTests.cpp" line="281"> + + !is_true<false>::value + + + !false + + + +
+ +
+ +TrickyTests.cpp" line="313"> + + True + + + true + + +TrickyTests.cpp" line="314"> + + !False + + + true + + +TrickyTests.cpp" line="315"> + + !False + + + !false + + + + + +
+
+
+BDDTests.cpp" line="37"> + + itDoesThis() + + + true + + + +
+ +
+ +
+ +
+ +
+ +
diff --git a/projects/XCode4/CatchSelfTest/CatchSelfTest/BDDTests.cpp b/projects/XCode4/CatchSelfTest/CatchSelfTest/BDDTests.cpp index bc88849c..a54595a2 100644 --- a/projects/XCode4/CatchSelfTest/CatchSelfTest/BDDTests.cpp +++ b/projects/XCode4/CatchSelfTest/CatchSelfTest/BDDTests.cpp @@ -32,7 +32,7 @@ SCENARIO( storyName, "scenario name" ) { // do this - THEN( "it should this this") + THEN( "it should do this") { REQUIRE( itDoesThis() ); }