You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add more links to internal examples
* start fullstack example
* instrument specs on the fly
* add screenshot and unit tests
* add circle job
* add link to example from README
Copy file name to clipboardExpand all lines: README.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -332,8 +332,13 @@ npm run dev:no:coverage
332
332
333
333
### Internal examples
334
334
335
-
-[examples/before-each-visit](examples/before-each-visit) checks if code coverage correctly keeps track of code when doing `cy.visit` before each test
335
+
Full examples we use for testing in this repository:
336
+
337
+
-[examples/backend](examples/backend) only instruments the backend Node server and saves the coverage report
338
+
-[examples/fullstack](examples/fullstack) instruments and merges backend, e2e and unit test coverage into a single report
336
339
-[examples/before-all-visit](examples/before-all-visit) checks if code coverage works when `cy.visit` is made once in the `before` hook
340
+
-[examples/before-each-visit](examples/before-each-visit) checks if code coverage correctly keeps track of code when doing `cy.visit` before each test
341
+
-[examples/one-spec.js](examples/one-spec.js) confirms that coverage is collected and filtered correctly if the user only executes a single Cypress test
337
342
-[examples/ts-example](examples/ts-example) uses Babel + Parcel to instrument and serve TypeScript file
> Combined code coverage from the backend code, and e2e and unit tests
4
+
5
+
This example runs instrumented server code, that serves instrumented frontend code, and instruments the unit tests on the fly. The final report combines all 3 sources of information.
6
+
7
+
To run
8
+
9
+
```sh
10
+
$ npm run dev
11
+
```
12
+
13
+
You should see messages from the plugin when it saves each coverage object
0 commit comments