Cypress · Middle · Question 53 of 77

How can code coverage be collected from Cypress tests?

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.

Further reading

Problem with a question

Cypress · Middle · question 53

Test yourself

Take the Cypress · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz