Report timing out despite having `__coverage__`
See original GitHub issueHi,
For some reason, with cypress run
or cypress open
can be set even when only visiting a page to ensure coverage on the server end), I’m getting the error:
CypressError: cy.task('coverageReport') timed out after waiting 60000ms.
Because this error occurred during a 'after all' hook we are skipping all of the remaining tests.
I’m getting the following debugging output before the error.
code-coverage parsed sent coverage +0ms
code-coverage wrote coverage file /Users/brett/node-login/.nyc_output/out.json +1ms
code-coverage parsed sent coverage +150ms
code-coverage wrote coverage file /Users/brett/node-login/.nyc_output/out.json +2ms
code-coverage saving coverage report using command: "nyc report --report-dir ./coverage --temp-dir /Users/brett/node-login/.nyc_output --reporter=text --reporter=html --reporter=lcov" +29ms
code-coverage current working directory is /Users/brett/node-login +0ms
(Then the timeout occurs.)
I’ve added a mostly empty placeholder script file–with just a console.log
statement even for those files which are only intended to be loaded to trigger server coverage, and I’ve confirmed that after instrumenting, this instrumented file is being loaded and that __coverage__
is set within it, but I’m still getting the above error.
Is there anything else I should be looking for besides an absent __coverage__
?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Fix: Connection Has Timed Out on all Windows 11 Browsers
The connection has timed out is an error in all browsers that makes it impossible to access a web resource. Here is how...
Read more >Reporting time pay
A. Your employer is required to pay you two hours of reporting time pay. Since you worked only one hour, which is less...
Read more >Insurance lapses - New York DMV
An insurance lapse means that there is no liability insurance coverage for a vehicle registered in New York State for a period of...
Read more >COMMON ERRORS IN KRONOS AND HOW TO FIX THEM
Employees eligible for on-call pay must report their hours using the OCL pay code. Some employees are mistakenly using OCP or BAS to...
Read more >Homeowners insurance guide
They usually don't stop your liability coverage, though. If you plan to be out of your house for an extended time, talk to...
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
🎉 This issue has been resolved in version 1.12.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
Actually, I will just increase the default timeout for that task to 3 minutes