Skip to content

[Feature request] Add new parameter "minimum_coverage_per_file" #81

@tprouvot

Description

@tprouvot

Hi,
Thanks for this action, it is very helpful !

It would be nice to have two distinct a new parameter which would be : minimum_coverage_per_file

Example:

- name: cobertura-report
        uses: 5monkeys/cobertura-action@v13
        with:
          path: cobertura/coverage/cobertura.xml
          minimum_coverage: 75
          minimum_coverage_per_file: 70

And result would be

first example KO

File Coverage Lines Missing
All files 75% 75%
no-map/AccountTriggerHandler 100% 100%
no-map/AccountContactRelation 50% 50%

Minimum coverage requirement was not satisfied (75% global and 70% per file )

- name: cobertura-report
        uses: 5monkeys/cobertura-action@v13
        with:
          path: cobertura/coverage/cobertura.xml
          minimum_coverage: 85
          minimum_coverage_per_file: 75

second example OK

File Coverage Lines Missing
All files 87% 87%
no-map/AccountTriggerHandler 100% 100%
no-map/AccountContactRelation 75% 75%

Minimum coverage requirement satisfied (85% global and 75% per file )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions