Skip to content

Extend check-total to look beyond statements and read from Nyc config like .nycrc #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kamathvikram opened this issue Jan 16, 2024 · 1 comment

Comments

@kamathvikram
Copy link

kamathvikram commented Jan 16, 2024

Extend check-total to look beyond statements. It appears, at the moment, check-total only checks against statements and not against lines, functions or branches.

check-total --from coverage/coverage-summary.json --min 80

Expected

Also support

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.

@zodman
Copy link

zodman commented Jun 24, 2024

an alternative you should use npx nyc check-coverage for reading the nycrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants