code-coverage
code-coverage copied to clipboard
Code coverage does not update after ct-open and running tests in the runner
Logs and screenshots
Versions ^3.9.4
-
What is Cypress version? 7.1.0
-
What is your operating system? MacOS
-
What is the shell? Bash
-
What is the Node version? 12.04
-
What is the NPM version? 6.14.11
-
How do you instrument your application? Cypress does not instrument web application code, so you need to do it yourself.
-
Istanbul with babel
-
When running tests, if you open the web application in regular browser, and open DevTools, do you see
window.__coverage__object? Can you paste a screenshot? -
Its there
-
Is there
.nyc_outputfolder? Is there.nyc_output/out.jsonfile. Is it empty? Can you paste at least part of it so we can see the keys and file paths? -
There
-
Not empty it only updates for the test you run and not keep it in memory
-
Do you have any custom NYC settings in
package.json(nycobject) or in other NYC config files -
Do you run Cypress tests in a Docker container? No
Describe the bug
Running ct-run - coverage includes all ct unit test coverage Running ct-open - coverage only includes the last run component test and this gets cleared the test test you click on
Link to the repo
https://github.com/timfisher/cypresstest/
