-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to generate Code Coverage report - 'Cannot find coverage file' #756
Comments
I am also having this issue when using the chrome 120 |
I got the same issue when I migrated from I don't currently have a non-Mac setup to try this on anything else, so I have no idea if this is a Mac specific issue or something wider. It is worth noting that the same issue appears on both an M1 Mac and an Intel Mac. It does pass on our GitLab CI/CD, which is running docker images on a kubernetes cluster, so it does seem to suggest it is more Mac specific that is an issue, or at least something to do with Docker Desktop. Edit: Noticed there is |
For me the answer was this, #361 (comment) Might not be the answer for everyone, but if coverage is being skipped only in one place but works fine in others, possibly the one place is not on a path that gets Istanbul instrumentation in your app? |
I was facing the same issue. In addition to downgrading to action v5, I was also using a custom image ( |
I'm also facing the same issue. |
I recently upgraded the Cypress version to
13.6.1
from9.6.x
and the coverage reports stopped working. Followed all the steps mentioned in this guide https://docs.cypress.io/guides/tooling/code-coverage#E2E-code-coverageDebug Log
Coverage failure message
Versions
13.6.1
Mac OS Ventura
OMZ
v16.18.1
8.19.2
Via babel using webpack
window.__coverage__
object? Can you paste a screenshot?.nyc_output
folder? Is there a.nyc_output/out.json
file? Is it empty? Can you paste at least part of it so we can see the keys and file paths? -it is empty
package.json
(nyc
object) or in other NYC config files? -No
The issue is happening in both Mac OS and Linux based Docker Containers.
Here is some additional information
cypress.config.ts
filecypress/plugins/index.js
filecypress/support/e2e.ts
fileAny help is appreciated.
Thanks,
Nathan
The text was updated successfully, but these errors were encountered: