mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Rebased approvals with info loop change
This commit is contained in:
parent
97c06ca6fb
commit
6282999291
@ -273,6 +273,13 @@ MessageTests.cpp:<line number>
|
|||||||
this message may be logged later
|
this message may be logged later
|
||||||
this message should be logged
|
this message should be logged
|
||||||
and this, but later
|
and this, but later
|
||||||
|
MessageTests.cpp:<line number>
|
||||||
|
</failure>
|
||||||
|
</testcase>
|
||||||
|
<testcase classname="<exe-name>.global" name="INFO is reset for each loop" time="{duration}">
|
||||||
|
<failure message="10 < 10" type="REQUIRE">
|
||||||
|
current counter 10
|
||||||
|
i := 10
|
||||||
MessageTests.cpp:<line number>
|
MessageTests.cpp:<line number>
|
||||||
</failure>
|
</failure>
|
||||||
</testcase>
|
</testcase>
|
||||||
@ -459,13 +466,6 @@ MessageTests.cpp:<line number>
|
|||||||
DecompositionTests.cpp:<line number>
|
DecompositionTests.cpp:<line number>
|
||||||
</failure>
|
</failure>
|
||||||
</testcase>
|
</testcase>
|
||||||
<testcase classname="<exe-name>.global" name="SCOPED_INFO is reset for each loop" time="{duration}">
|
|
||||||
<failure message="10 < 10" type="REQUIRE">
|
|
||||||
current counter 10
|
|
||||||
i := 10
|
|
||||||
MessageTests.cpp:<line number>
|
|
||||||
</failure>
|
|
||||||
</testcase>
|
|
||||||
<testcase classname="<exe-name>.global" name="SUCCEED counts as a test pass" time="{duration}"/>
|
<testcase classname="<exe-name>.global" name="SUCCEED counts as a test pass" time="{duration}"/>
|
||||||
<testcase classname="<exe-name>.global" name="SUCCESS does not require an argument" time="{duration}"/>
|
<testcase classname="<exe-name>.global" name="SUCCESS does not require an argument" time="{duration}"/>
|
||||||
<testcase classname="<exe-name>.Fixture" name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods/Given: No operations precede me" time="{duration}"/>
|
<testcase classname="<exe-name>.Fixture" name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods/Given: No operations precede me" time="{duration}"/>
|
||||||
|
@ -1920,6 +1920,163 @@
|
|||||||
</Expression>
|
</Expression>
|
||||||
<OverallResult success="false"/>
|
<OverallResult success="false"/>
|
||||||
</TestCase>
|
</TestCase>
|
||||||
|
<TestCase name="INFO is reset for each loop" tags="[.][failing][hide][messages]" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Info>
|
||||||
|
current counter 0
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 0
|
||||||
|
</Info>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
0 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
current counter 1
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 1
|
||||||
|
</Info>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
1 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
current counter 2
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 2
|
||||||
|
</Info>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
2 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
current counter 3
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 3
|
||||||
|
</Info>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
3 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
current counter 4
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 4
|
||||||
|
</Info>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
4 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
current counter 5
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 5
|
||||||
|
</Info>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
5 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
current counter 6
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 6
|
||||||
|
</Info>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
6 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
current counter 7
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 7
|
||||||
|
</Info>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
7 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
current counter 8
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 8
|
||||||
|
</Info>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
8 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
current counter 9
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 9
|
||||||
|
</Info>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
9 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
current counter 10
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 10
|
||||||
|
</Info>
|
||||||
|
<Expression success="false" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
|
<Original>
|
||||||
|
i < 10
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
10 < 10
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<OverallResult success="false"/>
|
||||||
|
</TestCase>
|
||||||
<TestCase name="Inequality checks that should fail" tags="[!shouldfail][.][failing][hide]" filename="projects/<exe-name>/ConditionTests.cpp" >
|
<TestCase name="Inequality checks that should fail" tags="[!shouldfail][.][failing][hide]" filename="projects/<exe-name>/ConditionTests.cpp" >
|
||||||
<Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" >
|
<Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" >
|
||||||
<Original>
|
<Original>
|
||||||
@ -4431,163 +4588,6 @@
|
|||||||
</Expression>
|
</Expression>
|
||||||
<OverallResult success="false"/>
|
<OverallResult success="false"/>
|
||||||
</TestCase>
|
</TestCase>
|
||||||
<TestCase name="SCOPED_INFO is reset for each loop" tags="[.][failing][hide][messages]" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Info>
|
|
||||||
current counter 0
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 0
|
|
||||||
</Info>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
0 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Info>
|
|
||||||
current counter 1
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 1
|
|
||||||
</Info>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
1 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Info>
|
|
||||||
current counter 2
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 2
|
|
||||||
</Info>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
2 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Info>
|
|
||||||
current counter 3
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 3
|
|
||||||
</Info>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
3 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Info>
|
|
||||||
current counter 4
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 4
|
|
||||||
</Info>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
4 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Info>
|
|
||||||
current counter 5
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 5
|
|
||||||
</Info>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
5 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Info>
|
|
||||||
current counter 6
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 6
|
|
||||||
</Info>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
6 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Info>
|
|
||||||
current counter 7
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 7
|
|
||||||
</Info>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
7 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Info>
|
|
||||||
current counter 8
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 8
|
|
||||||
</Info>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
8 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Info>
|
|
||||||
current counter 9
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 9
|
|
||||||
</Info>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
9 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Info>
|
|
||||||
current counter 10
|
|
||||||
</Info>
|
|
||||||
<Info>
|
|
||||||
i := 10
|
|
||||||
</Info>
|
|
||||||
<Expression success="false" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" >
|
|
||||||
<Original>
|
|
||||||
i < 10
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
10 < 10
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<OverallResult success="false"/>
|
|
||||||
</TestCase>
|
|
||||||
<TestCase name="SUCCEED counts as a test pass" tags="[messages]" filename="projects/<exe-name>/MessageTests.cpp" >
|
<TestCase name="SUCCEED counts as a test pass" tags="[messages]" filename="projects/<exe-name>/MessageTests.cpp" >
|
||||||
<OverallResult success="true"/>
|
<OverallResult success="true"/>
|
||||||
</TestCase>
|
</TestCase>
|
||||||
|
Loading…
Reference in New Issue
Block a user