Open maddy619 opened 4 years ago
Can you include DEBUG logs please https://github.com/cypress-io/code-coverage#debugging or give a link to the repo?
I'm experiencing a similar problem. The file nyc_output/out.json
is populated with data and I use @cypress/instrument-cra
which neatly makes __coverage__
available. Reports generated by nyc
are empty. However, the report generated by Cypress in coverage/lcov-report/index.html
renders as it's supposed to.
What is the situation with this, I get same behaviour as described above, html report is generated, also nyc out.json, but nyc command line tool bundled within generates always 'Unknown' for code coverage?
Versions: node v12.18.4 +
"@cypress/code-coverage": "3.9.5",
"cypress": "7.3.0",
@bahmutov bahmutov what could be the reason for this? Could you provide a solution for this
@Isurunc I don't maintain this plugin, I have my own fork here https://github.com/bahmutov/cypress-code-coverage
@Isurunc I don't maintain this plugin, I have my own fork here https://github.com/bahmutov/cypress-code-coverage
thanks. will check
Out.json
Versions
nyc comes with cypress code-coverage plugin
Node version - 12.14.1
NPM version - 6.13.4
Angular version - 6.2.9
How do you instrument your application- using istanbul-instrumenter-loader and following bahmutov`s project. https://github.com/bahmutov/cypress-angular-coverage-example
window.__coverage__
object was successfully create, cant paste here..!.nyc_output
Do you have any custom NYC settings in
package.json
-NoDo you run Cypress tests in a Docker container? - No on local
I am working on angular app, using typescript and ts-loader. I am able to successfully instrument code. The folder structure is something like this. Code folder: Project/projects/feature-x/src/app Cypress folder: Project/projects/feature-cypress/cypress.
Coverage.webpack.js is parallel to cypress folder.