Skip to content

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

@kamathvikram

Description

@kamathvikram

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions