Open tprouvot opened 1 year ago
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
75%
100%
50%
Minimum coverage requirement was not satisfied (75% global and 70% per file )
70%
- name: cobertura-report uses: 5monkeys/cobertura-action@v13 with: path: cobertura/coverage/cobertura.xml minimum_coverage: 85 minimum_coverage_per_file: 75
87%
Minimum coverage requirement satisfied (85% global and 75% per file )
85%
In our project we currently can't fail a build when a single files is below the threshold. The suggested option would come in very handy here!
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:
And result would be
first example KO
75%
75%
100%
100%
50%
50%
Minimum coverage requirement was not satisfied (
75%
global and70%
per file )second example OK
87%
87%
100%
100%
75%
75%
Minimum coverage requirement satisfied (
85%
global and75%
per file )