You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you run Cypress tests in a Docker container? Yes
Describe the bug
I am trying to combine the unit test coverage and e2e. But the coverage is different in different environments. I have tested this in 3 different environments.
My Windows (Win 10 x64) machine, which normally shows 5 uncovered branches. FYI, I delete .nyc and coverage folder before running the commands.
A docker file which I use to test with. This one show 3 uncovered branches.
The pipeline (GitHub Actions) which build the same docker file. This one show 8 uncovered branches.
I have RUN npm run components:ci && npm run e2e:ci && npm run build in my docker file and run the same commands in the same order in windows too. However, if I run the e2e before components I will end up with 32 uncovered branches.
I am testing a page using component test which results in 100% code coverage. When I run the e2e (to test the routing to this page), it will be reduced to just over 80%.
Link to the repo
Sadly, I cannot make the project public, and if I remove the codes/tests the issue with go away. But the setup can be find in this template. But, I will be able to give access to a contributor.
Hi @hamidmayeli issues in the repo are reserved for bugs and feature requests. Please check out the Cypress Discord Community , it can be helpful for debugging or answering questions on how to use Cypress and Cypress plugins.
Logs and screenshots
I won't be able to add logs as it's over GitHub limits
Versions
^3.11.0
^12.17.2
20.3.1
9.7.2
vite-plugin-istanbul
verionn^5.0.0
.window.__coverage__
object? Yes.nyc_output
folder? Is there.nyc_output/out.json
file. Is it empty? It's not empty and has +31K lines content.package.json
(nyc
object) or in other [NYC config files] YesDescribe the bug
I am trying to combine the unit test coverage and e2e. But the coverage is different in different environments. I have tested this in 3 different environments.
.nyc
andcoverage
folder before running the commands.I have
RUN npm run components:ci && npm run e2e:ci && npm run build
in my docker file and run the same commands in the same order in windows too. However, if I run thee2e
beforecomponents
I will end up with 32 uncovered branches.Link to the repo
Sadly, I cannot make the project public, and if I remove the codes/tests the issue with go away. But the setup can be find in this template. But, I will be able to give access to a contributor.
package.json
vite.ts
cypress.config.ts
Dockerfile
The text was updated successfully, but these errors were encountered: