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.

Report timing out despite having `__coverage__`

See original GitHub issue

Hi,

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

github_iconTop GitHub Comments

1reaction
bahmutovcommented, Feb 11, 2020

🎉 This issue has been resolved in version 1.12.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

1reaction
bahmutovcommented, Feb 11, 2020

Actually, I will just increase the default timeout for that task to 3 minutes

Read more comments on GitHub >

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

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