mirror of https://github.com/onqtam/doctest
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
5.5 KiB
Plaintext
115 lines
5.5 KiB
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
<doctest binary="all_features">
|
|
<Options order_by="file" rand_seed="324" first="0" last="4294967295" abort_after="0" subcase_filter_levels="2147483647" case_sensitive="false" no_throw="false" no_skip="false"/>
|
|
<TestSuite>
|
|
<TestCase name="an empty test that will succeed - not part of a test suite" filename="test_cases_and_suites.cpp" line="0">
|
|
<OverallResultsAsserts successes="0" failures="0" test_case_success="true"/>
|
|
</TestCase>
|
|
<TestCase name="should fail because of an exception" filename="test_cases_and_suites.cpp" line="0">
|
|
<Exception crash="false">
|
|
0
|
|
</Exception>
|
|
<OverallResultsAsserts successes="1" failures="0" test_case_success="false"/>
|
|
</TestCase>
|
|
</TestSuite>
|
|
<TestSuite name="scoped test suite">
|
|
<TestCase name="part of scoped" filename="test_cases_and_suites.cpp" line="0">
|
|
<Message type="FATAL ERROR" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text/>
|
|
</Message>
|
|
<OverallResultsAsserts successes="0" failures="1" test_case_success="false"/>
|
|
</TestCase>
|
|
<TestCase name="part of scoped 2" filename="test_cases_and_suites.cpp" line="0">
|
|
<Message type="FATAL ERROR" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text/>
|
|
</Message>
|
|
<OverallResultsAsserts successes="0" failures="1" test_case_success="false"/>
|
|
</TestCase>
|
|
</TestSuite>
|
|
<TestSuite name="some TS">
|
|
<TestCase name="part of some TS" filename="test_cases_and_suites.cpp" line="0">
|
|
<Message type="FATAL ERROR" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text/>
|
|
</Message>
|
|
<OverallResultsAsserts successes="0" failures="1" test_case_success="false"/>
|
|
</TestCase>
|
|
</TestSuite>
|
|
<TestSuite>
|
|
<TestCase name="fixtured test - not part of a test suite" filename="test_cases_and_suites.cpp" line="0">
|
|
<Expression success="false" type="CHECK" filename="test_cases_and_suites.cpp" line="0">
|
|
<Original>
|
|
data == 85
|
|
</Original>
|
|
<Expanded>
|
|
21 == 85
|
|
</Expanded>
|
|
</Expression>
|
|
<OverallResultsAsserts successes="0" failures="1" test_case_success="false"/>
|
|
</TestCase>
|
|
</TestSuite>
|
|
<TestSuite name="ts1">
|
|
<TestCase name="normal test in a test suite from a decorator" filename="test_cases_and_suites.cpp" line="0">
|
|
<Message type="WARNING" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text>
|
|
failing because of the timeout decorator!
|
|
</Text>
|
|
</Message>
|
|
<OverallResultsAsserts successes="0" failures="0" test_case_success="false"/>
|
|
</TestCase>
|
|
</TestSuite>
|
|
<TestSuite name="skipped test cases">
|
|
<TestCase name="unskipped" filename="test_cases_and_suites.cpp" line="0" description="this test has overridden its skip decorator">
|
|
<Message type="FATAL ERROR" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text/>
|
|
</Message>
|
|
<OverallResultsAsserts successes="0" failures="1" test_case_success="false"/>
|
|
</TestCase>
|
|
</TestSuite>
|
|
<TestSuite name="test suite with a description">
|
|
<TestCase name="fails - and its allowed" filename="test_cases_and_suites.cpp" line="0" description="regarding failures" may_fail="true">
|
|
<Message type="FATAL ERROR" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text/>
|
|
</Message>
|
|
<OverallResultsAsserts successes="0" failures="1" test_case_success="true"/>
|
|
</TestCase>
|
|
<TestCase name="doesn't fail which is fine" filename="test_cases_and_suites.cpp" line="0" description="regarding failures" may_fail="true">
|
|
<OverallResultsAsserts successes="0" failures="0" test_case_success="true"/>
|
|
</TestCase>
|
|
<TestCase name="fails as it should" filename="test_cases_and_suites.cpp" line="0" description="regarding failures" should_fail="true">
|
|
<Message type="FATAL ERROR" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text/>
|
|
</Message>
|
|
<OverallResultsAsserts successes="0" failures="1" test_case_success="true"/>
|
|
</TestCase>
|
|
<TestCase name="doesn't fail but it should have" filename="test_cases_and_suites.cpp" line="0" description="regarding failures" should_fail="true">
|
|
<OverallResultsAsserts successes="0" failures="0" test_case_success="false"/>
|
|
</TestCase>
|
|
<TestCase name="fails 1 time as it should" filename="test_cases_and_suites.cpp" line="0" description="regarding failures">
|
|
<Message type="FATAL ERROR" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text/>
|
|
</Message>
|
|
<OverallResultsAsserts successes="0" failures="1" test_case_success="true" expected_failures="1"/>
|
|
</TestCase>
|
|
<TestCase name="fails more times than it should" filename="test_cases_and_suites.cpp" line="0" description="regarding failures">
|
|
<Message type="ERROR" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text/>
|
|
</Message>
|
|
<Message type="ERROR" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text/>
|
|
</Message>
|
|
<OverallResultsAsserts successes="0" failures="2" test_case_success="false" expected_failures="1"/>
|
|
</TestCase>
|
|
</TestSuite>
|
|
<TestSuite>
|
|
<TestCase name="should fail and no output" filename="test_cases_and_suites.cpp" line="0" should_fail="true">
|
|
<Message type="FATAL ERROR" filename="test_cases_and_suites.cpp" line="0">
|
|
<Text/>
|
|
</Message>
|
|
<OverallResultsAsserts successes="0" failures="1" test_case_success="true"/>
|
|
</TestCase>
|
|
</TestSuite>
|
|
<OverallResultsAsserts successes="1" failures="11"/>
|
|
<OverallResultsTestCases successes="6" failures="9"/>
|
|
</doctest>
|
|
Program code.
|