doctest

FORK: The fastest feature-rich C++11/14/17/20 single-header testing framework
git clone https://git.neptards.moe/neptards/doctest.git
Log | Files | Refs | README

subcases.cpp_junit.txt (6417B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 
      3 root
      4 1
      5 1.1
      6 
      7 root
      8 2
      9 2.1
     10 
     11 root
     12 2
     13 
     14 root
     15 outside of subcase
     16 inside subcase 0
     17 outside of subcase
     18 inside subcase 1
     19 outside of subcase
     20 inside subcase 2
     21 
     22 root
     23 outside of subcase
     24 also inside 0
     25 outside of subcase
     26 also inside 1
     27 outside of subcase
     28 also inside 2
     29 
     30 root
     31 outside of subcase
     32 fail inside 0
     33 outside of subcase
     34 
     35 root
     36 outside of subcase
     37 inside outside
     38 nested twice 0, 0
     39 nested twice 0, 1
     40 nested twice 0, 2
     41 outside of subcase
     42 inside outside
     43 nested twice 1, 0
     44 nested twice 1, 1
     45 nested twice 1, 2
     46 outside of subcase
     47 inside outside
     48 nested twice 2, 0
     49 nested twice 2, 1
     50 nested twice 2, 2
     51 
     52 root
     53 outside of subcase
     54 inside outside
     55 also twice 0, 0
     56 also twice 0, 1
     57 also twice 0, 2
     58 outside of subcase
     59 inside outside
     60 also twice 1, 0
     61 also twice 1, 1
     62 also twice 1, 2
     63 outside of subcase
     64 inside outside
     65 also twice 2, 0
     66 also twice 2, 1
     67 also twice 2, 2
     68 <testsuites>
     69   <testsuite name="all_features" errors="4" failures="5" tests="26">
     70     <testcase classname="subcases.cpp" name="lots of nested subcases" status="run"/>
     71     <testcase classname="subcases.cpp" name="lots of nested subcases" status="run"/>
     72     <testcase classname="subcases.cpp" name="lots of nested subcases" status="run"/>
     73     <testcase classname="subcases.cpp" name="reentering subcase via regular control flow" status="run"/>
     74     <testcase classname="subcases.cpp" name="reentering subcase via regular control flow" status="run"/>
     75     <testcase classname="subcases.cpp" name="reentering subcase via regular control flow" status="run"/>
     76     <testcase classname="subcases.cpp" name="reentering subcase via regular control flow" status="run"/>
     77     <testcase classname="subcases.cpp" name="reentering subcase via regular control flow" status="run"/>
     78     <testcase classname="subcases.cpp" name="subcases can be used in a separate function as well/from function.../sc1" status="run"/>
     79     <testcase classname="subcases.cpp" name="subcases can be used in a separate function as well/from function.../sc2" status="run"/>
     80     <testcase classname="subcases.cpp" name="  Scenario: vectors can be sized and resized/   Given: A vector with some items/    When: the size is increased/    Then: the size and capacity change" status="run">
     81       <failure message="10 == 20" type="CHECK">
     82 subcases.cpp(0):
     83 CHECK( v.size() == 20 ) is NOT correct!
     84   values: CHECK( 10 == 20 )
     85 
     86       </failure>
     87     </testcase>
     88     <testcase classname="subcases.cpp" name="  Scenario: vectors can be sized and resized/   Given: A vector with some items/    When: the size is reduced/    Then: the size changes but not capacity" status="run"/>
     89     <testcase classname="subcases.cpp" name="  Scenario: vectors can be sized and resized/   Given: A vector with some items/    When: more capacity is reserved/    Then: the capacity changes but not the size" status="run"/>
     90     <testcase classname="subcases.cpp" name="  Scenario: vectors can be sized and resized/   Given: A vector with some items/    When: less capacity is reserved/    Then: neither size nor capacity are changed" status="run">
     91       <failure message="5 == 10" type="CHECK">
     92 subcases.cpp(0):
     93 CHECK( v.size() == 10 ) is NOT correct!
     94   values: CHECK( 5 == 10 )
     95 
     96       </failure>
     97     </testcase>
     98     <testcase classname="subcases.cpp" name="test case should fail even though the last subcase passes/one" status="run">
     99       <failure message="false" type="CHECK">
    100 subcases.cpp(0):
    101 CHECK( false ) is NOT correct!
    102   values: CHECK( false )
    103 
    104       </failure>
    105     </testcase>
    106     <testcase classname="subcases.cpp" name="test case should fail even though the last subcase passes/two" status="run"/>
    107     <testcase classname="subcases.cpp" name="fails from an exception but gets re-entered to traverse all subcases/level zero/one" status="run">
    108       <failure message="false" type="CHECK">
    109 subcases.cpp(0):
    110 CHECK( false ) is NOT correct!
    111   values: CHECK( false )
    112 
    113       </failure>
    114       <error message="exception">
    115         exception thrown in subcase - will translate later when the whole test case has been exited (cannot translate while there is an active exception)
    116       </error>
    117       <error message="exception">
    118         failure... but the show must go on!
    119       </error>
    120     </testcase>
    121     <testcase classname="subcases.cpp" name="fails from an exception but gets re-entered to traverse all subcases/level zero/two" status="run">
    122       <failure message="false" type="CHECK">
    123 subcases.cpp(0):
    124 CHECK( false ) is NOT correct!
    125   values: CHECK( false )
    126 
    127       </failure>
    128       <error message="exception">
    129         exception thrown in subcase - will translate later when the whole test case has been exited (cannot translate while there is an active exception)
    130       </error>
    131       <error message="exception">
    132         failure... but the show must go on!
    133       </error>
    134     </testcase>
    135     <testcase classname="subcases.cpp" name="Nested - related to https://github.com/doctest/doctest/issues/282/generate data variant 1/check data 1" status="run"/>
    136     <testcase classname="subcases.cpp" name="Nested - related to https://github.com/doctest/doctest/issues/282/generate data variant 1/check data 2" status="run"/>
    137     <testcase classname="subcases.cpp" name="Nested - related to https://github.com/doctest/doctest/issues/282/generate data variant 1/check data 1" status="run"/>
    138     <testcase classname="subcases.cpp" name="Nested - related to https://github.com/doctest/doctest/issues/282/generate data variant 1/check data 2" status="run"/>
    139     <testcase classname="subcases.cpp" name="subcases with changing names/outer 0/inner 0" status="run"/>
    140     <testcase classname="subcases.cpp" name="subcases with changing names/outer 0/inner 1" status="run"/>
    141     <testcase classname="subcases.cpp" name="subcases with changing names/outer 1/inner 0" status="run"/>
    142     <testcase classname="subcases.cpp" name="subcases with changing names/outer 1/inner 1" status="run"/>
    143     <testcase classname="subcases.cpp" name="subcases with changing names/separate" status="run"/>
    144     <testcase classname="subcases.cpp" name="with a funnier name\:/with the funniest name\," status="run"/>
    145     <testcase classname="subcases.cpp" name="with a funnier name\:/with a slightly funny name :" status="run"/>
    146     <testcase classname="subcases.cpp" name="with a funnier name\:/without a funny name" status="run"/>
    147     <testcase classname="subcases.cpp" name="without a funny name:" status="run"/>
    148   </testsuite>
    149 </testsuites>
    150 Program code.