Tags beginning with a non alpha-numeric character are now disallowed.

Added !throws special tag which denotes a test case to be skipped when run with -e
(the idea being that the test case is expected to throw an exception which is not caught within a XXX_THROWS assertion).
This commit is contained in:
Phil Nash
2014-04-15 18:44:37 +01:00
parent c5406a25bf
commit 20cad7cb1d
18 changed files with 312 additions and 244 deletions

View File

@@ -774,5 +774,5 @@ with expansion:
"first" == "second"
===============================================================================
124 test cases - 38 failed (660 assertions - 93 failed)
125 test cases - 38 failed (660 assertions - 93 failed)

View File

@@ -3650,6 +3650,15 @@ MiscTests.cpp:<line number>: FAILED:
explicitly with message:
to infinity and beyond
-------------------------------------------------------------------------------
not allowed
-------------------------------------------------------------------------------
MiscTests.cpp:<line number>
...............................................................................
No assertions in test case 'not allowed'
-------------------------------------------------------------------------------
Process can be configured on command line
default - no arguments
@@ -6982,5 +6991,5 @@ with expansion:
true
===============================================================================
124 test cases - 53 failed (679 assertions - 112 failed)
125 test cases - 54 failed (680 assertions - 113 failed)

View File

@@ -1,5 +1,5 @@
<testsuites>
<testsuite name="~_" errors="12" failures="100" tests="679" hostname="tbd" time="{duration}" timestamp="tbd">
<testsuite name="~_" errors="12" failures="101" tests="680" hostname="tbd" time="{duration}" timestamp="tbd">
<testcase classname="global" name="Some simple comparisons between doubles" time="{duration}"/>
<testcase classname="global" name="Approximate comparisons with different epsilons" time="{duration}"/>
<testcase classname="global" name="Approximate comparisons with floats" time="{duration}"/>

View File

@@ -3723,6 +3723,9 @@
</Failure>
<OverallResult success="false"/>
</TestCase>
<TestCase name="not allowed">
<OverallResult success="true"/>
</TestCase>
<TestCase name="Process can be configured on command line">
<Section name="default - no arguments">
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
@@ -7242,7 +7245,7 @@ there&quot;
</Section>
<OverallResult success="true"/>
</TestCase>
<OverallResults successes="567" failures="112"/>
<OverallResults successes="567" failures="113"/>
</Group>
<OverallResults successes="567" failures="112"/>
<OverallResults successes="567" failures="113"/>
</Catch>