-
-
Notifications
You must be signed in to change notification settings - Fork 687
Enhancement: Generate test coverage report after npm test #2289
Copy link
Copy link
Closed
Labels
Description
Currently, the project do not have test coverage feature, and we donot know if the test is enough or not.
So I suggest if we can have test coverage feature, it is better for us to control test or CI flow in the future.
I will introduce C8 here:
Here is the website and documentation of C8:
https://www.npmjs.com/package/c8
C8 can generate html report, text report, cobertura report and etc.
Here is report screenshot:


it also report directly during test run:

The report will generated under ./coverage folder, of cause it should be git ignored.
Reactions are currently unavailable