assemblyscript
assemblyscript copied to clipboard
Enhancement: Generate test coverage report after npm test
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.
I created one PR, please kindly review and decide if we need this feature, thank you: https://github.com/AssemblyScript/assemblyscript/pull/2294
I skiped the lib folder and created a new PR, please kindly check, thanks.
Optional code coverage has been added in #2517 in spirit of #2294. There's some documentation. Do you want to keep this issue open to track further progress, or can we close?
@dcodeIO I will close it, for the test progress, I think it is suitable to divide them with different functionalities.