Cypress · Senior · Question 37 of 76
Is gating merges on Cypress code coverage a good idea?
- 1Use coverage to find gaps, not as a hard target
- 2No, coverage can't be measured from E2E tests
- 3Yes, require 100% coverage on every pull request
Show the answer
Correct answer: Use coverage to find gaps, not as a hard target
Explanation
E2E coverage is coarse. Targets encourage tests written for numbers instead of behaviour.