12
12
--------------------|----------|----------|----------|----------|-------------------|
13
13
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
14
14
--------------------|----------|----------|----------|----------|-------------------|
15
- All files | 95.42 | 75.9 | 89.66 | 95.42 | |
16
- bin | 86.49 | 71.43 | 100 | 86.49 | |
17
- c8.js | 86.49 | 71.43 | 100 | 86.49 | 26,34,35,36,37 |
15
+ All files | 95.41 | 76.83 | 89.66 | 95.41 | |
16
+ bin | 85.71 | 83.33 | 100 | 85.71 | |
17
+ c8.js | 85.71 | 83.33 | 100 | 85.71 | 25,32,33,34,35 |
18
18
lib | 97.05 | 65 | 100 | 97.05 | |
19
19
parse-args.js | 98.35 | 53.85 | 100 | 98.35 | 97,98 |
20
20
report.js | 96 | 70.37 | 100 | 96 |... 08,134,135,136 |
21
- lib/commands | 97.65 | 84.21 | 87.5 | 97.65 | |
21
+ lib/commands | 97.67 | 84.21 | 87.5 | 97.67 | |
22
22
check-coverage.js | 100 | 92.86 | 100 | 100 | 17 |
23
- report.js | 92 | 60 | 50 | 92 | 8,9 |
23
+ report.js | 92.31 | 60 | 50 | 92.31 | 9,10 |
24
24
test/fixtures | 90.91 | 94.12 | 75 | 90.91 | |
25
25
async.js | 100 | 100 | 100 | 100 | |
26
26
multiple-spawn.js | 100 | 100 | 100 | 100 | |
27
27
normal.js | 76 | 75 | 33.33 | 76 | 14,15,16,18,19,20 |
28
28
subprocess.js | 100 | 100 | 100 | 100 | |
29
29
--------------------|----------|----------|----------|----------|-------------------|
30
- ,ERROR: Coverage for lines (95.42 %) does not meet global threshold (101%)
30
+ ,ERROR: Coverage for lines (95.41 %) does not meet global threshold (101%)
31
31
"
32
32
` ;
33
33
@@ -40,7 +40,7 @@ ERROR: Coverage for lines (76%) does not meet threshold (80%) for test/fixtures/
40
40
exports [` c8 check-coverage exits with 0 if coverage within threshold 1` ] = ` ",,"` ;
41
41
42
42
exports [` c8 check-coverage exits with 1 if coverage is below threshold 1` ] = `
43
- ",,ERROR: Coverage for lines (94.99 %) does not meet global threshold (101%)
43
+ ",,ERROR: Coverage for lines (94.98 %) does not meet global threshold (101%)
44
44
"
45
45
` ;
46
46
@@ -52,15 +52,15 @@ second
52
52
--------------------|----------|----------|----------|----------|-------------------|
53
53
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
54
54
--------------------|----------|----------|----------|----------|-------------------|
55
- All files | 84.53 | 67.16 | 74.07 | 84.53 | |
56
- bin | 86.49 | 57.14 | 100 | 86.49 | |
57
- c8.js | 86.49 | 57.14 | 100 | 86.49 | 26,34,35,36,37 |
55
+ All files | 84.5 | 68.18 | 74.07 | 84.5 | |
56
+ bin | 85.71 | 66.67 | 100 | 85.71 | |
57
+ c8.js | 85.71 | 66.67 | 100 | 85.71 | 25,32,33,34,35 |
58
58
lib | 95.57 | 55.56 | 100 | 95.57 | |
59
59
parse-args.js | 96.69 | 41.67 | 100 | 96.69 | 83,84,97,98 |
60
60
report.js | 94.67 | 62.5 | 100 | 94.67 |... 08,134,135,136 |
61
- lib/commands | 43.53 | 71.43 | 16.67 | 43.53 | |
61
+ lib/commands | 44.19 | 71.43 | 16.67 | 44.19 | |
62
62
check-coverage.js | 23.33 | 100 | 0 | 23.33 |... 55,56,57,58,59 |
63
- report.js | 92 | 60 | 50 | 92 | 8,9 |
63
+ report.js | 92.31 | 60 | 50 | 92.31 | 9,10 |
64
64
test/fixtures | 90.91 | 94.12 | 75 | 90.91 | |
65
65
async.js | 100 | 100 | 100 | 100 | |
66
66
multiple-spawn.js | 100 | 100 | 100 | 100 | |
@@ -70,6 +70,51 @@ All files | 84.53 | 67.16 | 74.07 | 84.53 |
70
70
,"
71
71
` ;
72
72
73
+ exports [` c8 report generates report from existing temporary files 1` ] = `
74
+ ",--------------------|----------|----------|----------|----------|-------------------|
75
+ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
76
+ --------------------|----------|----------|----------|----------|-------------------|
77
+ All files | 95.41 | 79.76 | 89.66 | 95.41 | |
78
+ bin | 85.71 | 85.71 | 100 | 85.71 | |
79
+ c8.js | 85.71 | 85.71 | 100 | 85.71 | 25,32,33,34,35 |
80
+ lib | 97.05 | 69.05 | 100 | 97.05 | |
81
+ parse-args.js | 98.35 | 53.85 | 100 | 98.35 | 97,98 |
82
+ report.js | 96 | 75.86 | 100 | 96 |... 08,134,135,136 |
83
+ lib/commands | 97.67 | 88.89 | 87.5 | 97.67 | |
84
+ check-coverage.js | 100 | 92.31 | 100 | 100 | 17 |
85
+ report.js | 92.31 | 80 | 50 | 92.31 | 9,10 |
86
+ test/fixtures | 90.91 | 94.12 | 75 | 90.91 | |
87
+ async.js | 100 | 100 | 100 | 100 | |
88
+ multiple-spawn.js | 100 | 100 | 100 | 100 | |
89
+ normal.js | 76 | 75 | 33.33 | 76 | 14,15,16,18,19,20 |
90
+ subprocess.js | 100 | 100 | 100 | 100 | |
91
+ --------------------|----------|----------|----------|----------|-------------------|
92
+ ,"
93
+ ` ;
94
+
95
+ exports [` c8 report supports --check-coverage, when generating reports 1` ] = `
96
+ ",--------------------|----------|----------|----------|----------|-------------------|
97
+ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
98
+ --------------------|----------|----------|----------|----------|-------------------|
99
+ All files | 95.85 | 79.76 | 93.1 | 95.85 | |
100
+ bin | 85.71 | 83.33 | 100 | 85.71 | |
101
+ c8.js | 85.71 | 83.33 | 100 | 85.71 | 25,32,33,34,35 |
102
+ lib | 97.05 | 69.05 | 100 | 97.05 | |
103
+ parse-args.js | 98.35 | 53.85 | 100 | 98.35 | 97,98 |
104
+ report.js | 96 | 75.86 | 100 | 96 |... 08,134,135,136 |
105
+ lib/commands | 100 | 89.47 | 100 | 100 | |
106
+ check-coverage.js | 100 | 92.31 | 100 | 100 | 17 |
107
+ report.js | 100 | 83.33 | 100 | 100 | 16 |
108
+ test/fixtures | 90.91 | 94.12 | 75 | 90.91 | |
109
+ async.js | 100 | 100 | 100 | 100 | |
110
+ multiple-spawn.js | 100 | 100 | 100 | 100 | |
111
+ normal.js | 76 | 75 | 33.33 | 76 | 14,15,16,18,19,20 |
112
+ subprocess.js | 100 | 100 | 100 | 100 | |
113
+ --------------------|----------|----------|----------|----------|-------------------|
114
+ ,ERROR: Coverage for lines (95.85%) does not meet global threshold (101%)
115
+ "
116
+ ` ;
117
+
73
118
exports [` c8 reports coverage for script that exits normally 1` ] = `
74
119
",hey
75
120
i am a line of code
0 commit comments