Skip to content

Upgrading to Cypress 9.1.0 breaks code coverage #19166

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

Closed
esdc-esac-esa-int opened this issue Dec 1, 2021 · 3 comments
Closed

Upgrading to Cypress 9.1.0 breaks code coverage #19166

esdc-esac-esa-int opened this issue Dec 1, 2021 · 3 comments

Comments

@esdc-esac-esa-int
Copy link

Current behavior

Upgrading from Cypress 9.0.0 to 9.1.0 breaks the code coverage of our Angular e2e tests. Our setup is based on this:
https://github.com/skylock/cypress-angular-coverage-example

When using 9.1.0 a message is displayed saying:
nyc out.json is empty

This basically means the instrumentation failed or did not happen. However, downgrading to 9.0.0 and everything continues to work.

I don't know if it can somehow be related to the plugin for code coverage e.g cypress-io/code-coverage#78

Desired behavior

Code coverage should continue to be generated.

Test code to reproduce

N/A

Cypress Version

9.1.0

Other

No response

@Narretz
Copy link
Contributor

Narretz commented Dec 2, 2021

dupe of #19070

@JonCook
Copy link

JonCook commented Dec 2, 2021

Hi, my bad. Looks to be a duplicate.

@emilyrohrbough
Copy link
Member

Closing in favor fo #19070

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants