question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Empty e2e coverage results

See original GitHub issue

Hey,

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 Screen Shot 2019-08-18 at 12 05 00 AM

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 Screen Shot 2019-08-18 at 12 05 26 AM

  • The second call which basically passes in an empty coverage map seems to break everything and produce an empty result. Screen Shot 2019-08-18 at 12 05 32 AM

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:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ShamansCodingcommented, Sep 19, 2019

Yes ,There is issue with nyc 14.1.1 just downgrade to 13.x.x it should work

Downgraded to version 13.3.0, it’s working now.

2reactions
ManuBoca92commented, Sep 13, 2019

Aha! no I did not instrumented it, thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found