Questions tagged [cypress-code-coverage]
10 questions
2
votes
1 answer
SonarCloud Code Coverage doesn't work with Github Action
I tried to pass my code coverage report generated by cypress tests with Github Action, but it arrives at SonarCloud with 0% coverage.
In my pipeline, i get the following warn:
WARN: Could not resolve 7 file paths in…

Fernando Pimenta
- 21
- 4
2
votes
1 answer
How to register cypress `code-coverage` plugin with cypress v10?
In cypress migration guide they mention that plugin files are no longer supported. They also mention that you need to use >=v3.10 of code-coverage plugin
I do have correct version installed, and I tried to update cypress.config.ts to:
import {…

qnsi
- 370
- 4
- 14
1
vote
0 answers
Cypress code coverage not running against all files
We've recently implemented Cypress tests, and I'm trying to set up code coverage reports to ensure we can track coverage of new code. I've followed the steps outlined here, however when I run my cypress tests the only file showing as tested in my…

pbright
- 13
- 2
1
vote
0 answers
Cypress code coverage for cross-origin code
Code fails when running with code coverage for cross-origin program
My program uses a lot of cross-origin testing and I'm able to get it to run fine, but when I try to add in code coverage I get an error when it tries to change origins that says…

Theresa Wright
- 11
- 1
1
vote
1 answer
Cypress Test Coverage (Create-react-app CRA Typescript)
I've been trying to set up Cypress code covereage based on their documentation, but it doesnt cover CRA (Create-react-app) in 2022 with Typescript, so i've been having some trouble.
My folder structure…

Patrick
- 97
- 2
- 9
1
vote
0 answers
cypress code coverage for react application
I am facing below issue while making code coverge of my application. My application has below folder structure.
Help me to get code coverage of all src folder. Thanks in advance

Abhishek
- 19
- 2
1
vote
4 answers
How do I resolve the error "don't know how to turn this value into a node" for a Vue 3 app using babel-plugin-istanbul extending .vue
My ultimate goal is to get e2e and unit code coverage for my Vue 3 app using Cypress in my CI/CD pipelines.
However, when using the following configuration in my babel.config.js I get a flood of repeated error messages that read don't know how to…

Stephen Carico
- 83
- 1
- 8
0
votes
0 answers
Error "Unable to lookup source" when looking at the files from the coverage report generated with @cypress/code-coverage
I`m trying to generate code coverage report for a front-end application developed by someone else.
The application was developed using Vue.js and built with Vite. Also, it is served from a Docker Container.
I`m able to generate the code coverage…

ashmedai82
- 5
- 4
0
votes
0 answers
Code Coverage for Backend code when running UI Automated tests
I ve a test automation suite in Cypress for testing a webapp. The webapp is developed using JS frameworks in the frontend and Java/C# in the backend. My requirement is to calculate code coverage for both fronend and backend code when running my…

Linkesh Kanna Velu
- 121
- 1
- 9
0
votes
0 answers
How to get Cypress coverage code of the main code from another repo?
I have a repo of the main code and then there's a second repo just for E2E Cypress tests. How can I get the code coverage of the main code from the repo of Cypress tests ?
I tried the documentation of Cypress and I'm stuck at the instrumentation…

BenDou
- 13
- 2