Closed yelhouti closed 5 years ago
npm run coverage
runs automatically after running npm run test
via the posttest
script. I can see how that can be confusing though.
@ruddell thanks for the info, but if I'm not wrong report doesn't regenerate the report, it just displays it.
May be test
should become: ...nyc --reporter=text-summary mocha test
instead of nyc mocha test
, so that report works as expected
Nice find, but I don't get the original issue at first glance. Can you please, next time, provide more details so that we can understand everything right away? thanks. I'm going to try improving it right now.
@MathieuAA thanks for fixing, I can assure you I didn't understand fully what way my problem until rudeel explained where it was used. can't explain what I don't know yet :p
Overview of the issue
npm run coverage
didn't work fork for me, instead I had to usenyc ... mocha
instead ofnyc ... report
. Is this used in your CI or somewhere else, or just someone forgot to change it. For new people on the project it just wastes some of your time.