Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/motss/c8-code-coverage-bug
https://github.com/motss/c8-code-coverage-bug
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/motss/c8-code-coverage-bug
- Owner: motss
- Created: 2021-07-25T08:45:33.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-25T13:03:54.000Z (over 3 years ago)
- Last Synced: 2024-11-07T08:50:18.274Z (about 2 months ago)
- Language: TypeScript
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Incorrect code coverage report
For unknown reason, code coverage report generated by `c8` is showing incorrect result despite all branches are covered.
I even tested it with compiled JavaScript files by `swc` and the result remains unchanged when there is no additional code generated found at the said line.
## Actual behavior
![additional line reported](https://user-images.githubusercontent.com/10607759/126899579-749a1051-8a14-43ee-bc97-768c00b131dd.png)
There is 1 additional branch has been reported not being covered.
## Expected beahvior
![all lines are covered](https://user-images.githubusercontent.com/10607759/126899578-3cad23f8-283b-44bc-b38f-64114f3d54ac.png)
All lines are covered and `c8` should be able to pick up the result correctly.
## How to test
1. Run `npm i` to install depedencies
2. Run `npm t` to run test with code coverage collection