gotwarlost / istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k stars 786 forks source link

Cannot get the backend coverage by running Cypress UI e2e test #945

Closed andrelo86 closed 2 years ago

andrelo86 commented 2 years ago

In same project I've a backend and UI each running in diff ports for sure

I've a fronted developed in React

I've an express server whith an http service which is called from the UI

Added Cypress and a written a test, he go to the UI and the backend serve some info

Can I get the backend coverage? meaning, by hitting the UI I want to know if the test executes some line in the BE

Thanks in advance, Andres

andrelo86 commented 2 years ago

In same project I've a backend and UI each running in diff ports for sure

I've a fronted developed in React

I've an express server whith an http service which is called from the UI

Added Cypress and a written a test, he go to the UI and the backend serve some info

Can I get the backend coverage? meaning, by hitting the UI I want to know if the test executes some line in the BE

Thanks in advance, Andres

No worries, I found it how to do it here: https://github.com/cypress-io/code-coverage