code-coverage icon indicating copy to clipboard operation
code-coverage copied to clipboard

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

Open timfisher opened this issue 4 years ago • 0 comments

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

timfisher avatar Apr 21 '21 12:04 timfisher