right now it's possible to enforce coverage via the test.coverage.thresholds values. if these are set and the pr causes coverage to drop below these values, the action fails.
however, this makes it hard to introduce coverage/tests in an existing codebase where there are none.
i'd like to add a check which looks at the same numbers you use for calculating the trends and fails when a pr causes coverage to go down. i'm not sure if having thresholds would be useful here - for me, i'd want any negative trend to fail.
does this sound like something useful? if so i'd be happy to open a pr.
right now it's possible to enforce coverage via the
test.coverage.thresholdsvalues. if these are set and the pr causes coverage to drop below these values, the action fails.however, this makes it hard to introduce coverage/tests in an existing codebase where there are none.
i'd like to add a check which looks at the same numbers you use for calculating the trends and fails when a pr causes coverage to go down. i'm not sure if having thresholds would be useful here - for me, i'd want any negative trend to fail.
does this sound like something useful? if so i'd be happy to open a pr.