File: subcases.cpp_junit.txt

package info (click to toggle)
doctest 2.4.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,436 kB
  • sloc: cpp: 13,546; python: 261; makefile: 30; sh: 1
file content (162 lines) | stat: -rw-r--r-- 6,588 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0" encoding="UTF-8"?>

root
1
1.1

root
2
2.1

root
2

root
outside of subcase
inside subcase 0
outside of subcase
inside subcase 1
outside of subcase
inside subcase 2

root
outside of subcase
also inside 0
outside of subcase
also inside 1
outside of subcase
also inside 2

root
outside of subcase
fail inside 0
outside of subcase

root
outside of subcase
inside outside
nested twice 0, 0
nested twice 0, 1
nested twice 0, 2
outside of subcase
inside outside
nested twice 1, 0
nested twice 1, 1
nested twice 1, 2
outside of subcase
inside outside
nested twice 2, 0
nested twice 2, 1
nested twice 2, 2

root
outside of subcase
inside outside
also twice 0, 0
also twice 0, 1
also twice 0, 2
outside of subcase
inside outside
also twice 1, 0
also twice 1, 1
also twice 1, 2
outside of subcase
inside outside
also twice 2, 0
also twice 2, 1
also twice 2, 2
<testsuites>
  <testsuite name="all_features" errors="4" failures="7" tests="26">
    <testcase classname="subcases.cpp" name="lots of nested subcases" status="run"/>
    <testcase classname="subcases.cpp" name="lots of nested subcases" status="run"/>
    <testcase classname="subcases.cpp" name="lots of nested subcases" status="run">
      <failure type="FAIL">
subcases.cpp(0):


      </failure>
    </testcase>
    <testcase classname="subcases.cpp" name="reentering subcase via regular control flow" status="run"/>
    <testcase classname="subcases.cpp" name="reentering subcase via regular control flow" status="run"/>
    <testcase classname="subcases.cpp" name="reentering subcase via regular control flow" status="run">
      <failure message="1" type="FAIL">
subcases.cpp(0):
1

      </failure>
    </testcase>
    <testcase classname="subcases.cpp" name="reentering subcase via regular control flow" status="run"/>
    <testcase classname="subcases.cpp" name="reentering subcase via regular control flow" status="run"/>
    <testcase classname="subcases.cpp" name="subcases can be used in a separate function as well/from function.../sc1" status="run"/>
    <testcase classname="subcases.cpp" name="subcases can be used in a separate function as well/from function.../sc2" status="run"/>
    <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">
      <failure message="10 == 20" type="CHECK">
subcases.cpp(0):
CHECK( v.size() == 20 ) is NOT correct!
  values: CHECK( 10 == 20 )

      </failure>
    </testcase>
    <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"/>
    <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"/>
    <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">
      <failure message="5 == 10" type="CHECK">
subcases.cpp(0):
CHECK( v.size() == 10 ) is NOT correct!
  values: CHECK( 5 == 10 )

      </failure>
    </testcase>
    <testcase classname="subcases.cpp" name="test case should fail even though the last subcase passes/one" status="run">
      <failure message="false" type="CHECK">
subcases.cpp(0):
CHECK( false ) is NOT correct!
  values: CHECK( false )

      </failure>
    </testcase>
    <testcase classname="subcases.cpp" name="test case should fail even though the last subcase passes/two" status="run"/>
    <testcase classname="subcases.cpp" name="fails from an exception but gets re-entered to traverse all subcases/level zero/one" status="run">
      <failure message="false" type="CHECK">
subcases.cpp(0):
CHECK( false ) is NOT correct!
  values: CHECK( false )

      </failure>
      <error message="exception">
        exception thrown in subcase - will translate later when the whole test case has been exited (cannot translate while there is an active exception)
      </error>
      <error message="exception">
        failure... but the show must go on!
      </error>
    </testcase>
    <testcase classname="subcases.cpp" name="fails from an exception but gets re-entered to traverse all subcases/level zero/two" status="run">
      <failure message="false" type="CHECK">
subcases.cpp(0):
CHECK( false ) is NOT correct!
  values: CHECK( false )

      </failure>
      <error message="exception">
        exception thrown in subcase - will translate later when the whole test case has been exited (cannot translate while there is an active exception)
      </error>
      <error message="exception">
        failure... but the show must go on!
      </error>
    </testcase>
    <testcase classname="subcases.cpp" name="Nested - related to https://github.com/doctest/doctest/issues/282/generate data variant 1/check data 1" status="run"/>
    <testcase classname="subcases.cpp" name="Nested - related to https://github.com/doctest/doctest/issues/282/generate data variant 1/check data 2" status="run"/>
    <testcase classname="subcases.cpp" name="Nested - related to https://github.com/doctest/doctest/issues/282/generate data variant 1/check data 1" status="run"/>
    <testcase classname="subcases.cpp" name="Nested - related to https://github.com/doctest/doctest/issues/282/generate data variant 1/check data 2" status="run"/>
    <testcase classname="subcases.cpp" name="subcases with changing names/outer 0/inner 0" status="run"/>
    <testcase classname="subcases.cpp" name="subcases with changing names/outer 0/inner 1" status="run"/>
    <testcase classname="subcases.cpp" name="subcases with changing names/outer 1/inner 0" status="run"/>
    <testcase classname="subcases.cpp" name="subcases with changing names/outer 1/inner 1" status="run"/>
    <testcase classname="subcases.cpp" name="subcases with changing names/separate" status="run"/>
    <testcase classname="subcases.cpp" name="with a funnier name\:/with the funniest name\," status="run"/>
    <testcase classname="subcases.cpp" name="with a funnier name\:/with a slightly funny name :" status="run"/>
    <testcase classname="subcases.cpp" name="with a funnier name\:/without a funny name" status="run"/>
    <testcase classname="subcases.cpp" name="without a funny name:" status="run"/>
  </testsuite>
</testsuites>
Program code.