-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
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: 70And 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: 75second 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 )
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels