Code Coverage for Unit Test in Angular #24336
Unanswered
hebaibrahim76
asked this question in
Questions and Help
Replies: 1 comment 1 reply
-
Hi @hebaibrahim76, I never used coverage but based on your coverage config, it sounds like it excludes cy.ts files:
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi, I'm trying to get a coverage report for unit testing in angular
For the instrumentation I'm using ngx-build-plus
Here's my repo https://github.com/hebaibrahim76/Unit-Testing
I added an add.ts file that has a simple addition function
I'm testing that function in cypress/e2e/add.cy.ts
The test is passing, but the coverage is being 0%
Beta Was this translation helpful? Give feedback.
All reactions