Cypress · Middle · Question 53 of 77
How can code coverage be collected from Cypress tests?
- 1Coverage can only be measured in unit tests
- 2Instrument the app and use the code coverage plugin
- 3Cypress reports coverage automatically for every run
Show the answer
Correct answer: Instrument the app and use the code coverage plugin
Explanation
The app is built with instrumentation (e.g. Istanbul) and the plugin merges coverage from all specs into a report.