Skip to content
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

Code coverage does not update after ct-open and running tests in the runner #434

Closed
timfisher opened this issue Apr 21, 2021 · 0 comments
Closed

Comments

@timfisher
Copy link

timfisher commented Apr 21, 2021

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_output folder? Is there .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?

  • 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 (nyc object) 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/
Screenshot 2021-04-21 at 13 10 57

@jennifer-shehane jennifer-shehane closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2024
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

2 participants