Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm test --codecoverage doesn't generate report

Have no ideas why when I hit

npm test --codecoverage

All test is being executed, however I see an empty '/coverage' folder with no single report. I use angular-cli

What I'm doing wrong?

like image 697
Vnuuk Avatar asked May 04 '26 16:05

Vnuuk


1 Answers

If you have the CLI installed globally, The command is

ng test --code-coverage

If you want to use the npm scripts, you will need to do

npm test -- --code-coverage
like image 148
delasteve Avatar answered May 07 '26 08:05

delasteve



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!