@@ -8,7 +8,7 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
8
8
-------------------|---------|----------|---------|---------|-------------------
9
9
All files | 86.21 | 91.67 | 66.67 | 86.21 |
10
10
async.js | 100 | 100 | 100 | 100 |
11
- c8-ignore-next.js | 90.91 | 100 | 100 | 90.91 | 21, 22
11
+ c8-ignore-next.js | 90.91 | 100 | 100 | 90.91 | 21- 22
12
12
normal.js | 75 | 66.67 | 33.33 | 75 | 14-16,18-20
13
13
-------------------|---------|----------|---------|---------|-------------------
14
14
,"
@@ -23,7 +23,7 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
23
23
--------------|---------|----------|---------|---------|-------------------
24
24
All files | 64.29 | 66.67 | 50 | 64.29 |
25
25
vanilla | 78.26 | 75 | 100 | 78.26 |
26
- loaded.js | 73.68 | 71.43 | 100 | 73.68 | 4, 5,16-18
26
+ loaded.js | 73.68 | 71.43 | 100 | 73.68 | 4- 5,16-18
27
27
main.js | 100 | 100 | 100 | 100 |
28
28
vanilla/dir | 0 | 0 | 0 | 0 |
29
29
unloaded.js | 0 | 0 | 0 | 0 | 1-5
@@ -40,7 +40,7 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
40
40
-----------------|---------|----------|---------|---------|-------------------
41
41
All files | 64.29 | 66.67 | 50 | 64.29 |
42
42
ts-compiled | 78.26 | 75 | 100 | 78.26 |
43
- loaded.ts | 73.68 | 71.43 | 100 | 73.68 | 4, 5,16-18
43
+ loaded.ts | 73.68 | 71.43 | 100 | 73.68 | 4- 5,16-18
44
44
main.ts | 100 | 100 | 100 | 100 |
45
45
ts-compiled/dir | 0 | 0 | 0 | 0 |
46
46
unloaded.ts | 0 | 0 | 0 | 0 | 1-5
@@ -57,7 +57,7 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
57
57
--------------|---------|----------|---------|---------|-------------------
58
58
All files | 64.29 | 66.67 | 50 | 64.29 |
59
59
ts-only | 78.26 | 75 | 100 | 78.26 |
60
- loaded.ts | 73.68 | 71.43 | 100 | 73.68 | 4, 5,16-18
60
+ loaded.ts | 73.68 | 71.43 | 100 | 73.68 | 4- 5,16-18
61
61
main.ts | 100 | 100 | 100 | 100 |
62
62
ts-only/dir | 0 | 0 | 0 | 0 |
63
63
unloaded.ts | 0 | 0 | 0 | 0 | 1-5
@@ -74,7 +74,7 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
74
74
--------------|---------|----------|---------|---------|-------------------
75
75
All files | 64.29 | 66.67 | 50 | 64.29 |
76
76
vanilla | 78.26 | 75 | 100 | 78.26 |
77
- loaded.js | 73.68 | 71.43 | 100 | 73.68 | 4, 5,16-18
77
+ loaded.js | 73.68 | 71.43 | 100 | 73.68 | 4- 5,16-18
78
78
main.js | 100 | 100 | 100 | 100 |
79
79
vanilla/dir | 0 | 0 | 0 | 0 |
80
80
unloaded.js | 0 | 0 | 0 | 0 | 1-5
@@ -95,7 +95,7 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
95
95
------------|---------|----------|---------|---------|-------------------
96
96
All files | 83.33 | 100 | 66.67 | 83.33 |
97
97
export.cjs | 100 | 100 | 100 | 100 |
98
- export.mjs | 71.43 | 100 | 50 | 71.43 | 2, 3
98
+ export.mjs | 71.43 | 100 | 50 | 71.43 | 2- 3
99
99
import.mjs | 100 | 100 | 100 | 100 |
100
100
------------|---------|----------|---------|---------|-------------------
101
101
,"
@@ -134,6 +134,55 @@ exports[`c8 check-coverage exits with 1 if coverage is below threshold 1`] = `
134
134
"
135
135
` ;
136
136
137
+ exports [` c8 cobertura report escapes special characters 1` ] = `
138
+ "<?xml version=\\ "1.0\\ " ?>
139
+ <!DOCTYPE coverage SYSTEM \\ "http://cobertura.sourceforge.net/xml/coverage-04.dtd\\ ">
140
+ <coverage lines-valid =\\"15\\" lines-covered =\\"15\\" line-rate =\\"1\\" branches-valid =\\"4\\" branches-covered =\\"4\\" branch-rate =\\"1\\" timestamp =\\"nnnn\\" complexity =\\"0\\" version =\\"0.1\\">
141
+ <sources>
142
+ <source>/Users/bencoe/oss/c8</source>
143
+ </sources>
144
+ <packages>
145
+ <class name =\\"computed-method.js\\" filename =\\"test/fixtures/computed-method.js\\" line-rate =\\"1\\" branch-rate =\\"1\\">
146
+ <methods>
147
+ <method name =\\"Test\\" hits =\\"1\\" signature =\\"()V\\">
148
+ <lines>
149
+ <line number =\\"2\\" hits =\\"1\\"/>
150
+ </lines>
151
+ </method>
152
+ <method name =\\"run\\" hits =\\"1\\" signature =\\"()V\\">
153
+ <lines>
154
+ <line number =\\"6\\" hits =\\"1\\"/>
155
+ </lines>
156
+ </method>
157
+ <method name =\\"map.<computed>.f\\" hits =\\"1\\" signature =\\"()V\\">
158
+ <lines>
159
+ <line number =\\"8\\" hits =\\"1\\"/>
160
+ </lines>
161
+ </method>
162
+ </methods>
163
+ <lines>
164
+ <line number =\\"1\\" hits =\\"1\\" branch =\\"true\\" condition-coverage =\\"100% (1/1)\\"/>
165
+ <line number =\\"2\\" hits =\\"1\\" branch =\\"true\\" condition-coverage =\\"100% (1/1)\\"/>
166
+ <line number =\\"3\\" hits =\\"1\\" branch =\\"false\\"/>
167
+ <line number =\\"4\\" hits =\\"1\\" branch =\\"false\\"/>
168
+ <line number =\\"5\\" hits =\\"1\\" branch =\\"false\\"/>
169
+ <line number =\\"6\\" hits =\\"1\\" branch =\\"true\\" condition-coverage =\\"100% (1/1)\\"/>
170
+ <line number =\\"7\\" hits =\\"1\\" branch =\\"false\\"/>
171
+ <line number =\\"8\\" hits =\\"1\\" branch =\\"true\\" condition-coverage =\\"100% (1/1)\\"/>
172
+ <line number =\\"9\\" hits =\\"1\\" branch =\\"false\\"/>
173
+ <line number =\\"10\\" hits =\\"1\\" branch =\\"false\\"/>
174
+ <line number =\\"11\\" hits =\\"1\\" branch =\\"false\\"/>
175
+ <line number =\\"12\\" hits =\\"1\\" branch =\\"false\\"/>
176
+ <line number =\\"13\\" hits =\\"1\\" branch =\\"false\\"/>
177
+ <line number =\\"14\\" hits =\\"1\\" branch =\\"false\\"/>
178
+ <line number =\\"15\\" hits =\\"1\\" branch =\\"false\\"/>
179
+ </lines>
180
+ </class>
181
+ </packages>
182
+ </coverage>
183
+ "
184
+ `;
185
+
137
186
exports[`c8 merges reports from subprocesses together 1`] = `
138
187
" ,first
139
188
@@ -199,7 +248,7 @@ a = false
199
248
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
200
249
------------------------|---------|----------|---------|---------|-------------------
201
250
All files | 84 | 57.14 | 100 | 84 |
202
- branches.typescript.ts | 84 | 57.14 | 100 | 84 | 7,11, 12,18
251
+ branches.typescript.ts | 84 | 57.14 | 100 | 84 | 7,11- 12,18
203
252
------------------------|---------|----------|---------|---------|-------------------
204
253
,"
205
254
`;
@@ -214,7 +263,7 @@ covered
214
263
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
215
264
-----------------------|---------|----------|---------|---------|-------------------
216
265
All files | 81.82 | 87.5 | 60 | 81.82 |
217
- classes.typescript.ts | 81.82 | 87.5 | 60 | 81.82 | 12, 13,21, 22,27, 28
266
+ classes.typescript.ts | 81.82 | 87.5 | 60 | 81.82 | 12- 13,21- 22,27- 28
218
267
-----------------------|---------|----------|---------|---------|-------------------
219
268
,"
220
269
`;
@@ -227,7 +276,7 @@ a = false
227
276
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
228
277
-------------|---------|----------|---------|---------|-------------------
229
278
All files | 80 | 50 | 100 | 80 |
230
- branches.js | 80 | 50 | 100 | 80 | 2,5, 6,13
279
+ branches.js | 80 | 50 | 100 | 80 | 2,5- 6,13
231
280
-------------|---------|----------|---------|---------|-------------------
232
281
,"
233
282
`;
@@ -242,7 +291,7 @@ covered
242
291
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
243
292
------------|---------|----------|---------|---------|-------------------
244
293
All files | 85.19 | 83.33 | 60 | 85.19 |
245
- classes.js | 85.19 | 83.33 | 60 | 85.19 | 6, 7,15,21
294
+ classes.js | 85.19 | 83.33 | 60 | 85.19 | 6- 7,15,21
246
295
------------|---------|----------|---------|---------|-------------------
247
296
,"
248
297
`;
@@ -270,7 +319,7 @@ covered
270
319
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
271
320
------------|---------|----------|---------|---------|-------------------
272
321
All files | 70.37 | 66.67 | 60 | 70.37 |
273
- classes.js | 70.37 | 66.67 | 60 | 70.37 | 5-8,15, 16,21, 22
322
+ classes.js | 70.37 | 66.67 | 60 | 70.37 | 5-8,15- 16,21- 22
274
323
------------|---------|----------|---------|---------|-------------------
275
324
,"
276
325
`;
@@ -304,7 +353,7 @@ covered
304
353
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
305
354
------------------|---------|----------|---------|---------|-------------------
306
355
All files | 88.24 | 87.5 | 80 | 88.24 |
307
- ts-node-basic.ts | 88.24 | 87.5 | 80 | 88.24 | 12, 13,28, 29
356
+ ts-node-basic.ts | 88.24 | 87.5 | 80 | 88.24 | 12- 13,28- 29
308
357
------------------|---------|----------|---------|---------|-------------------
309
358
,"
310
359
`;
0 commit comments