How do you merge both code coverages on component and e2e tests #16058
Unanswered
itstheandre
asked this question in
Component Testing
Replies: 1 comment 2 replies
-
This is not built into Cypress (yet, not sure if/when it will be, since coverage isn't really built in either, but provided via Instanbul.js) but you could try using some of the libraries like instanbul-combine or instanbul-merge in the meantime. It would be nice to combine these eventually, but it's not something that is getting worked on right now. We are working on better docs and tooling for component testing code coverage, though, you can follow the progress here. I'll probably make a blog post when we have it at a stage where it "just works" and comes built-in to our framework adapters (like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm sorry if this is repeated, but I can't find my previous post (maybe i didnt send ,also possible. But i wrote it for sure).
Either way, the question i have is:
Is there a way to run the component tests and the e2e tests at the same time in order to have both code-coverage results merged?
If I do
npx crypress run-ct
it only runs component tests. And if I donpx cypress run
it only runs integration / e2e tests. Is there a way to have a command that runs both at the same time and have one unified coverage?Thanks
Beta Was this translation helpful? Give feedback.
All reactions