Skip to content

Enhancement: Generate test coverage report after npm test #2289

Closed
@JesseCodeBones

Description

@JesseCodeBones

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:
image
image
it also report directly during test run:
image
The report will generated under ./coverage folder, of cause it should be git ignored.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions