@@ -286,6 +286,37 @@ workflows:
286
286
../../node_modules/.bin/only-covered main.js
287
287
working_directory : examples/support-files
288
288
289
+ - cypress/run :
290
+ attach-workspace : true
291
+ name : example-exclude-files
292
+ requires :
293
+ - cypress/install
294
+ # there are no jobs to follow this one
295
+ # so no need to save the workspace files (saves time)
296
+ no-workspace : true
297
+ start : npm start --prefix examples/exclude-files
298
+ wait-on : ' http://localhost:1234'
299
+ command : npx cypress run --project examples/exclude-files
300
+ # store screenshots and videos
301
+ store_artifacts : true
302
+ post-steps :
303
+ - run : cat examples/exclude-files/.nyc_output/out.json
304
+ # store the created coverage report folder
305
+ # you can click on it in the CircleCI UI
306
+ # to see live static HTML site
307
+ - store_artifacts :
308
+ path : examples/exclude-files/coverage
309
+ # make sure the examples captures 100% of code
310
+ - run :
311
+ command : npx nyc report --check-coverage true --lines 100
312
+ working_directory : examples/exclude-files
313
+ - run :
314
+ name : Check code coverage 📈
315
+ command : |
316
+ ../../node_modules/.bin/check-coverage main.js
317
+ ../../node_modules/.bin/only-covered main.js
318
+ working_directory : examples/exclude-files
319
+
289
320
- cypress/run :
290
321
attach-workspace : true
291
322
name : example-use-plugins-and-support
@@ -362,3 +393,4 @@ workflows:
362
393
- example-support-files
363
394
- example-use-plugins-and-support
364
395
- example-one-spec
396
+ - example-exclude-files
0 commit comments