Empty e2e coverage results
See original GitHub issueHey,
I’m noticing some weird coverage behavior with an instrumented front-end react app and an instrumented e2e set of specs. I’ve verified the counters across both front-end and spec code.
- Showing the end result of
combineCoverage
Debugging efforts
I rewrote combineCoverage
to print out a global summary and I get the following 2 results,
-
The first call to
combineCoverage
seems to show the proper result -
The second call which basically passes in an empty coverage map seems to break everything and produce an empty result.
Conclusion
Is there some weird behavior with the merge with empty maps happening here in this code?
It could also be that this should not be running that last combineCoverage
in the After
lifecycle and Im not sure why its running there in the first place.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Cypress e2e test coverage empty - Stack Overflow
I am using Cypress in my react app for integration test. I am facing coverage related problem, coverage report is showing blank.
Read more >How can I measure the coverage of my E2E tests?
Michael Bolton proposes testing coverage as: “X coverage is how thoroughly we have examined the product with respect to some model of X”....
Read more >Code coverage of E2E tests with Playwright | by Luděk Nový
Code coverage of E2E tests should not be used for dull 100% coverage goal (as with unit tests), since it may bring more...
Read more >Code Coverage - Cypress Documentation
It merges coverage from each test and saves the combined result. ... cypress/support/e2e.js import '@cypress/code-coverage/support'. cypress.config.js
Read more >Part 39 - Generate Code Coverage report from Cypress E2E ...
In this video I've shown how to Generate Code Coverage from Cypress E2E Tests for React (CRA) applicationGithub Repo ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Downgraded to version 13.3.0, it’s working now.
Aha! no I did not instrumented it, thanks.