File tree 3 files changed +22
-1
lines changed
3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,12 @@ workflows:
122
122
- run :
123
123
command : npx nyc report --check-coverage true --lines 100
124
124
working_directory : examples/before-each-visit
125
+ - run :
126
+ name : Check code coverage 📈
127
+ command : |
128
+ node ../../scripts/check-coverage main.js
129
+ node ../../scripts/only-covered main.js
130
+ working_directory : examples/before-each-visit
125
131
126
132
- cypress/run :
127
133
attach-workspace : true
@@ -145,6 +151,12 @@ workflows:
145
151
- run :
146
152
command : npx nyc report --check-coverage true --lines 100
147
153
working_directory : examples/before-all-visit
154
+ - run :
155
+ name : Check code coverage 📈
156
+ command : |
157
+ node ../../scripts/check-coverage main.js
158
+ node ../../scripts/only-covered main.js
159
+ working_directory : examples/before-all-visit
148
160
149
161
- cypress/run :
150
162
attach-workspace : true
@@ -168,6 +180,13 @@ workflows:
168
180
command : npm run coverage:check
169
181
working_directory : examples/ts-example
170
182
183
+ - run :
184
+ name : Check code coverage 📈
185
+ command : |
186
+ node ../../scripts/check-coverage main.ts
187
+ node ../../scripts/only-covered main.ts
188
+ working_directory : examples/ts-example
189
+
171
190
- cypress/run :
172
191
attach-workspace : true
173
192
name : example-same-folder
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ if (isThereUncoveredStatement) {
41
41
}
42
42
43
43
console . log (
44
- 'All statements in file %s (found for %s) were covered' ,
44
+ '✅ All statements in file %s (found for %s) were covered' ,
45
45
fileCoverage . path ,
46
46
filename
47
47
)
Original file line number Diff line number Diff line change @@ -47,3 +47,5 @@ if (covered.length < filenames.length) {
47
47
48
48
process . exit ( 1 )
49
49
}
50
+
51
+ console . log ( '✅ All and only expected files were covered' )
You can’t perform that action at this time.
0 commit comments