mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +01:00
Add test for %debug stream name
This commit is contained in:
parent
291b35b389
commit
5baa29b6b9
@ -320,6 +320,7 @@ loose text artifact
|
||||
:test-result: PASS long long
|
||||
:test-result: FAIL looped SECTION tests
|
||||
:test-result: FAIL looped tests
|
||||
:test-result: PASS makeStream recognizes %debug stream name
|
||||
:test-result: PASS make_unique reimplementation
|
||||
:test-result: PASS mean
|
||||
:test-result: PASS measure
|
||||
|
@ -312,6 +312,7 @@
|
||||
:test-result: PASS long long
|
||||
:test-result: FAIL looped SECTION tests
|
||||
:test-result: FAIL looped tests
|
||||
:test-result: PASS makeStream recognizes %debug stream name
|
||||
:test-result: PASS make_unique reimplementation
|
||||
:test-result: PASS mean
|
||||
:test-result: PASS measure
|
||||
|
@ -2269,6 +2269,7 @@ Misc.tests.cpp:<line number>: failed: ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 mes
|
||||
Misc.tests.cpp:<line number>: passed: ( fib[i] % 2 ) == 0 for: 0 == 0 with 1 message: 'Testing if fib[5] (8) is even'
|
||||
Misc.tests.cpp:<line number>: failed: ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[6] (13) is even'
|
||||
Misc.tests.cpp:<line number>: failed: ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[7] (21) is even'
|
||||
Stream.tests.cpp:<line number>: passed: Catch::makeStream( "%debug" )
|
||||
UniquePtr.tests.cpp:<line number>: passed: !(lval.has_moved) for: !false
|
||||
UniquePtr.tests.cpp:<line number>: passed: rval.has_moved for: true
|
||||
UniquePtr.tests.cpp:<line number>: passed: *ptr == std::tuple<int, double, int>{1, 2., 3} for: {?} == {?}
|
||||
|
@ -2261,6 +2261,7 @@ Misc.tests.cpp:<line number>: failed: ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 mes
|
||||
Misc.tests.cpp:<line number>: passed: ( fib[i] % 2 ) == 0 for: 0 == 0 with 1 message: 'Testing if fib[5] (8) is even'
|
||||
Misc.tests.cpp:<line number>: failed: ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[6] (13) is even'
|
||||
Misc.tests.cpp:<line number>: failed: ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[7] (21) is even'
|
||||
Stream.tests.cpp:<line number>: passed: Catch::makeStream( "%debug" )
|
||||
UniquePtr.tests.cpp:<line number>: passed: !(lval.has_moved) for: !false
|
||||
UniquePtr.tests.cpp:<line number>: passed: rval.has_moved for: true
|
||||
UniquePtr.tests.cpp:<line number>: passed: *ptr == std::tuple<int, double, int>{1, 2., 3} for: {?} == {?}
|
||||
|
@ -1394,6 +1394,6 @@ due to unexpected exception with message:
|
||||
Why would you throw a std::string?
|
||||
|
||||
===============================================================================
|
||||
test cases: 390 | 314 passed | 69 failed | 7 failed as expected
|
||||
assertions: 2225 | 2070 passed | 128 failed | 27 failed as expected
|
||||
test cases: 391 | 315 passed | 69 failed | 7 failed as expected
|
||||
assertions: 2226 | 2071 passed | 128 failed | 27 failed as expected
|
||||
|
||||
|
@ -15975,6 +15975,15 @@ with expansion:
|
||||
with message:
|
||||
Testing if fib[7] (21) is even
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
makeStream recognizes %debug stream name
|
||||
-------------------------------------------------------------------------------
|
||||
Stream.tests.cpp:<line number>
|
||||
...............................................................................
|
||||
|
||||
Stream.tests.cpp:<line number>: PASSED:
|
||||
REQUIRE_NOTHROW( Catch::makeStream( "%debug" ) )
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
make_unique reimplementation
|
||||
From lvalue copies
|
||||
@ -17925,6 +17934,6 @@ Misc.tests.cpp:<line number>
|
||||
Misc.tests.cpp:<line number>: PASSED:
|
||||
|
||||
===============================================================================
|
||||
test cases: 390 | 300 passed | 83 failed | 7 failed as expected
|
||||
assertions: 2240 | 2070 passed | 143 failed | 27 failed as expected
|
||||
test cases: 391 | 301 passed | 83 failed | 7 failed as expected
|
||||
assertions: 2241 | 2071 passed | 143 failed | 27 failed as expected
|
||||
|
||||
|
@ -15967,6 +15967,15 @@ with expansion:
|
||||
with message:
|
||||
Testing if fib[7] (21) is even
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
makeStream recognizes %debug stream name
|
||||
-------------------------------------------------------------------------------
|
||||
Stream.tests.cpp:<line number>
|
||||
...............................................................................
|
||||
|
||||
Stream.tests.cpp:<line number>: PASSED:
|
||||
REQUIRE_NOTHROW( Catch::makeStream( "%debug" ) )
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
make_unique reimplementation
|
||||
From lvalue copies
|
||||
@ -17917,6 +17926,6 @@ Misc.tests.cpp:<line number>
|
||||
Misc.tests.cpp:<line number>: PASSED:
|
||||
|
||||
===============================================================================
|
||||
test cases: 390 | 300 passed | 83 failed | 7 failed as expected
|
||||
assertions: 2240 | 2070 passed | 143 failed | 27 failed as expected
|
||||
test cases: 391 | 301 passed | 83 failed | 7 failed as expected
|
||||
assertions: 2241 | 2071 passed | 143 failed | 27 failed as expected
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuitesloose text artifact
|
||||
>
|
||||
<testsuite name="<exe-name>" errors="17" failures="126" tests="2240" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
|
||||
<testsuite name="<exe-name>" errors="17" failures="126" tests="2241" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
|
||||
<properties>
|
||||
<property name="random-seed" value="1"/>
|
||||
<property name="filters" value="~[!nonportable]~[!benchmark]~[approvals] *"/>
|
||||
@ -1727,6 +1727,7 @@ Testing if fib[7] (21) is even
|
||||
Misc.tests.cpp:<line number>
|
||||
</failure>
|
||||
</testcase>
|
||||
<testcase classname="<exe-name>.global" name="makeStream recognizes %debug stream name" time="{duration}" status="run"/>
|
||||
<testcase classname="<exe-name>.global" name="make_unique reimplementation/From lvalue copies" time="{duration}" status="run"/>
|
||||
<testcase classname="<exe-name>.global" name="make_unique reimplementation/From rvalue moves" time="{duration}" status="run"/>
|
||||
<testcase classname="<exe-name>.global" name="make_unique reimplementation/Variadic constructor" time="{duration}" status="run"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuites>
|
||||
<testsuite name="<exe-name>" errors="17" failures="126" tests="2240" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
|
||||
<testsuite name="<exe-name>" errors="17" failures="126" tests="2241" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
|
||||
<properties>
|
||||
<property name="random-seed" value="1"/>
|
||||
<property name="filters" value="~[!nonportable]~[!benchmark]~[approvals] *"/>
|
||||
@ -1726,6 +1726,7 @@ Testing if fib[7] (21) is even
|
||||
Misc.tests.cpp:<line number>
|
||||
</failure>
|
||||
</testcase>
|
||||
<testcase classname="<exe-name>.global" name="makeStream recognizes %debug stream name" time="{duration}" status="run"/>
|
||||
<testcase classname="<exe-name>.global" name="make_unique reimplementation/From lvalue copies" time="{duration}" status="run"/>
|
||||
<testcase classname="<exe-name>.global" name="make_unique reimplementation/From rvalue moves" time="{duration}" status="run"/>
|
||||
<testcase classname="<exe-name>.global" name="make_unique reimplementation/Variadic constructor" time="{duration}" status="run"/>
|
||||
|
@ -224,6 +224,7 @@
|
||||
<file path="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp">
|
||||
<testCase name="Cout stream properly declares it writes to stdout" duration="{duration}"/>
|
||||
<testCase name="Empty stream name opens cout stream" duration="{duration}"/>
|
||||
<testCase name="makeStream recognizes %debug stream name" duration="{duration}"/>
|
||||
<testCase name="request an unknown %-starting stream fails" duration="{duration}"/>
|
||||
<testCase name="stdout and stderr streams have %-starting name" duration="{duration}"/>
|
||||
</file>
|
||||
|
@ -223,6 +223,7 @@
|
||||
<file path="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp">
|
||||
<testCase name="Cout stream properly declares it writes to stdout" duration="{duration}"/>
|
||||
<testCase name="Empty stream name opens cout stream" duration="{duration}"/>
|
||||
<testCase name="makeStream recognizes %debug stream name" duration="{duration}"/>
|
||||
<testCase name="request an unknown %-starting stream fails" duration="{duration}"/>
|
||||
<testCase name="stdout and stderr streams have %-starting name" duration="{duration}"/>
|
||||
</file>
|
||||
|
@ -4019,6 +4019,8 @@ ok {test-number} - ( fib[i] % 2 ) == 0 for: 0 == 0 with 1 message: 'Testing if f
|
||||
not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[6] (13) is even'
|
||||
# looped tests
|
||||
not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[7] (21) is even'
|
||||
# makeStream recognizes %debug stream name
|
||||
ok {test-number} - Catch::makeStream( "%debug" )
|
||||
# make_unique reimplementation
|
||||
ok {test-number} - !(lval.has_moved) for: !false
|
||||
# make_unique reimplementation
|
||||
@ -4483,5 +4485,5 @@ ok {test-number} - q3 == 23. for: 23.0 == 23.0
|
||||
ok {test-number} -
|
||||
# xmlentitycheck
|
||||
ok {test-number} -
|
||||
1..2240
|
||||
1..2241
|
||||
|
||||
|
@ -4011,6 +4011,8 @@ ok {test-number} - ( fib[i] % 2 ) == 0 for: 0 == 0 with 1 message: 'Testing if f
|
||||
not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[6] (13) is even'
|
||||
# looped tests
|
||||
not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[7] (21) is even'
|
||||
# makeStream recognizes %debug stream name
|
||||
ok {test-number} - Catch::makeStream( "%debug" )
|
||||
# make_unique reimplementation
|
||||
ok {test-number} - !(lval.has_moved) for: !false
|
||||
# make_unique reimplementation
|
||||
@ -4475,5 +4477,5 @@ ok {test-number} - q3 == 23. for: 23.0 == 23.0
|
||||
ok {test-number} -
|
||||
# xmlentitycheck
|
||||
ok {test-number} -
|
||||
1..2240
|
||||
1..2241
|
||||
|
||||
|
@ -779,6 +779,8 @@ Misc.tests.cpp:<line number>|nexpression failed with message:|n "Testing if fib
|
||||
Misc.tests.cpp:<line number>|nexpression failed with message:|n "Testing if fib|[6|] (13) is even"|n CHECK( ( fib|[i|] % 2 ) == 0 )|nwith expansion:|n 1 == 0|n']
|
||||
Misc.tests.cpp:<line number>|nexpression failed with message:|n "Testing if fib|[7|] (21) is even"|n CHECK( ( fib|[i|] % 2 ) == 0 )|nwith expansion:|n 1 == 0|n']
|
||||
##teamcity[testFinished name='looped tests' duration="{duration}"]
|
||||
##teamcity[testStarted name='makeStream recognizes %debug stream name']
|
||||
##teamcity[testFinished name='makeStream recognizes %debug stream name' duration="{duration}"]
|
||||
##teamcity[testStarted name='make_unique reimplementation']
|
||||
##teamcity[testFinished name='make_unique reimplementation' duration="{duration}"]
|
||||
##teamcity[testStarted name='mean']
|
||||
|
@ -778,6 +778,8 @@ Misc.tests.cpp:<line number>|nexpression failed with message:|n "Testing if fib
|
||||
Misc.tests.cpp:<line number>|nexpression failed with message:|n "Testing if fib|[6|] (13) is even"|n CHECK( ( fib|[i|] % 2 ) == 0 )|nwith expansion:|n 1 == 0|n']
|
||||
Misc.tests.cpp:<line number>|nexpression failed with message:|n "Testing if fib|[7|] (21) is even"|n CHECK( ( fib|[i|] % 2 ) == 0 )|nwith expansion:|n 1 == 0|n']
|
||||
##teamcity[testFinished name='looped tests' duration="{duration}"]
|
||||
##teamcity[testStarted name='makeStream recognizes %debug stream name']
|
||||
##teamcity[testFinished name='makeStream recognizes %debug stream name' duration="{duration}"]
|
||||
##teamcity[testStarted name='make_unique reimplementation']
|
||||
##teamcity[testFinished name='make_unique reimplementation' duration="{duration}"]
|
||||
##teamcity[testStarted name='mean']
|
||||
|
@ -18765,6 +18765,17 @@ loose text artifact
|
||||
</Expression>
|
||||
<OverallResult success="false"/>
|
||||
</TestCase>
|
||||
<TestCase name="makeStream recognizes %debug stream name" tags="[streams]" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
|
||||
<Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
|
||||
<Original>
|
||||
Catch::makeStream( "%debug" )
|
||||
</Original>
|
||||
<Expanded>
|
||||
Catch::makeStream( "%debug" )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<TestCase name="make_unique reimplementation" tags="[internals][unique-ptr]" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
|
||||
<Section name="From lvalue copies" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
|
||||
<Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
|
||||
@ -21050,6 +21061,6 @@ loose text artifact
|
||||
</Section>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<OverallResults successes="2070" failures="143" expectedFailures="27"/>
|
||||
<OverallResultsCases successes="300" failures="83" expectedFailures="7"/>
|
||||
<OverallResults successes="2071" failures="143" expectedFailures="27"/>
|
||||
<OverallResultsCases successes="301" failures="83" expectedFailures="7"/>
|
||||
</Catch2TestRun>
|
||||
|
@ -18764,6 +18764,17 @@ There is no extra whitespace here
|
||||
</Expression>
|
||||
<OverallResult success="false"/>
|
||||
</TestCase>
|
||||
<TestCase name="makeStream recognizes %debug stream name" tags="[streams]" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
|
||||
<Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
|
||||
<Original>
|
||||
Catch::makeStream( "%debug" )
|
||||
</Original>
|
||||
<Expanded>
|
||||
Catch::makeStream( "%debug" )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<TestCase name="make_unique reimplementation" tags="[internals][unique-ptr]" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
|
||||
<Section name="From lvalue copies" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
|
||||
<Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
|
||||
@ -21049,6 +21060,6 @@ There is no extra whitespace here
|
||||
</Section>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<OverallResults successes="2070" failures="143" expectedFailures="27"/>
|
||||
<OverallResultsCases successes="300" failures="83" expectedFailures="7"/>
|
||||
<OverallResults successes="2071" failures="143" expectedFailures="27"/>
|
||||
<OverallResultsCases successes="301" failures="83" expectedFailures="7"/>
|
||||
</Catch2TestRun>
|
||||
|
@ -26,3 +26,7 @@ TEST_CASE( "stdout and stderr streams have %-starting name", "[streams]" ) {
|
||||
TEST_CASE( "request an unknown %-starting stream fails", "[streams]" ) {
|
||||
REQUIRE_THROWS( Catch::makeStream( "%somestream" ) );
|
||||
}
|
||||
|
||||
TEST_CASE( "makeStream recognizes %debug stream name", "[streams]" ) {
|
||||
REQUIRE_NOTHROW( Catch::makeStream( "%debug" ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user