Skip to content

Improve fail_under by enabling more refined control on threshold #666

Open
@nedbat

Description

@nedbat

Originally reported by Anonymous


Hello,

I didn't find this option anywhere in the documentation so i hope i haven't missed anything.
The idea is that right now we can only set a global minimum threshold percentage on coverage. While this is really useful i suggest coverage could provide a more refined control on this requirement such as per module minimum percentage.

Taking for example jest (https://facebook.github.io/jest/docs/en/configuration.html#coveragethreshold-object) it would be really great if i could set in the report section my requirements like maybe a list of regexes with minimum requirements.

  • api/* -> 40%
  • db/* -> 80%

Thanks in advance


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions