istanbuljs / nyc

the Istanbul command line interface

Home Page:https://istanbul.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use nyc istanbul to generate code coverage ( Code Instrumentation ) without unit testing in Angular Project

erhimanshugarg opened this issue · comments

I have an Angular project and I am using Karma Jasmine and Istanbul reporter to generate code coverage for unit test cases in the Angular project but I have a requirement to generate code coverage (Code Instrumentation) without unit tests. I could not find any tutorial to implement in the angular project while for react there are multiple articles are present.

Expected Behavior

Code Coverage Report while manually testing the Angular application.

Observed Behavior

No Tutorial was found. tried few basic steps mentioned at Istanbul site.

Troubleshooting steps

tried few basic steps mentioned at Istanbul site.

Environment Information

Angular 14+,
Typescript,
Karma,
Jasmine,
AgGrid

# paste the output here
#codecoverage #codeinstrumentation #angular #nyc