-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 run the Code Coverage Report with cypress 9.7.0 & cucumber #25223
Comments
What version of the code-coverage and the cucumber plugin are you on?
Please share your |
I'm not sure if you can, but updating to Cy 12 and the new version of the cucumber plugin (v15) find here might help. If you can't, check this issue: badeball/cypress-cucumber-preprocessor#198. Someone else had a similar problem. Try seeing what they did. If you can't get it working in a fresh repo, please upload the repo anyway, and I can take a look. I don't have the bandwidth to create a minimal reproduction for a third party plugin right now, but if you can put one together, I can take a look. Thanks! |
@anchalbhanwala were you able to try upgrading to Cypress 12 and cucumber plugin v15? Also, like Lachlan said, a repo would help us debug. Thanks |
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen. |
Current behavior
I am unable to generate the coverage report data in cypress(9.7.0) . As suggested in the cypress docs & git https://github.com/cypress-io/code-coverage , i have updated the index files , support files but on running the command
npx nyc report --reporter=text-summary , i see below
The code is compiled successfully , test runs as expected but the coverage report shows unknown.
Desired behavior
The coverage report should fetch the data received on running the test and should show the report.
Test code to reproduce
cypress > support > index.js
import '@cypress/code-coverage/support';
cypress > plugins > index.js
_module.exports = (on, config) => {
require('@cypress/code-coverage/task')(on, config)
// add other tasks to be registered here
// IMPORTANT to return the config object
// with the any changed environment variables
return config
}_
command using to run the test
For compilation - ng serve
To run test as below
"test": "npm run cy:test2 || npm run deletexml && npm run posttest ",
"cy:test2": "npx cypress run --headed --spec 'cypress/integration/features/*.feature' ",
"posttest": "allure generate allure-results --clean -o allure-report && allure open",
Cypress Version
9.7.0
Node version
v16.14.2
Operating System
windows 10
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: