@@ -104,6 +104,38 @@ workflows:
104
104
node ../../scripts/only-covered server.js
105
105
working_directory : examples/backend
106
106
107
+ - cypress/run :
108
+ name : fullstack coverage
109
+ requires :
110
+ - cypress/install
111
+ # grab the workspace created by cypress/install job
112
+ attach-workspace : true
113
+ working_directory : examples/fullstack
114
+ start : npm start
115
+ wait-on : ' http://localhost:3003'
116
+ command : ' ../../node_modules/.bin/cypress run'
117
+
118
+ # there are no jobs to follow this one
119
+ # so no need to save the workspace files (saves time)
120
+ no-workspace : true
121
+ post-steps :
122
+ # store the created coverage report folder
123
+ # you can click on it in the CircleCI UI
124
+ # to see live static HTML site
125
+ - store_artifacts :
126
+ path : examples/backend/coverage
127
+ - run :
128
+ command : npm run report
129
+ working_directory : examples/fullstack
130
+ - run :
131
+ name : Check code coverage 📈
132
+ command : |
133
+ node ../../scripts/check-coverage server.js
134
+ node ../../scripts/check-coverage main.js
135
+ node ../../scripts/check-coverage string-utils.js
136
+ node ../../scripts/only-covered server.js main.js string-utils.js
137
+ working_directory : examples/fullstack
138
+
107
139
- cypress/run :
108
140
attach-workspace : true
109
141
name : example-before-each-visit
@@ -322,6 +354,7 @@ workflows:
322
354
- unit
323
355
- frontend coverage
324
356
- backend coverage
357
+ - fullstack coverage
325
358
- example-before-each-visit
326
359
- example-before-all-visit
327
360
- example-ts-example
0 commit comments