bahmutov / bahmutov/check-code-coverage
Extend check-total to look beyond statements and read from Nyc config like .nycrc
- Dominant language
- JavaScript
- Stars
- 25
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
Extend `check-total` to look beyond statements. It appears, at the moment, [check-total only checks against statements](https://github.com/bahmutov/check-code-coverage/blob/master/bin/check-total.js#L30) and not against `lines, functions or branches`.
```bash
check-total --from coverage/coverage-summary.json --min 80
```
### Expected
Also support
```bash
check-total --from coverage/coverage-summary.json --min 80 --functions 63 --branches 53
```
Which would check against lines, functions and branches as well.
Additionally, if `.nycrc` is present then it can read the thresholds if not provided on cli.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.