Skip to content

Commit 052c593

Browse files
authored
Unit Test Coverage Threshold (#101)
* Setting unit test coverage target to 80% with a 2% threshold. Builds will fail if coverage hits 78%. * Adding pull request stats action to test. Signed-off-by: Mark Cohen <[email protected]> Co-authored-by: Mark Cohen <[email protected]>
1 parent e57a9f6 commit 052c593

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/.codecov.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ coverage:
33
status:
44
project:
55
default:
6-
# https://docs.codecov.com/docs/commit-status#target
7-
target: auto # coverage must be equal or above the previous commit
6+
target: 80%%
7+
threshold: 2%
8+

.github/workflows/stats.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ name: Pull Request Stats
33
on:
44
pull_request:
55
types: [opened]
6+
workflow_dispatch:
67

78
jobs:
89
stats:
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Run pull request stats
12-
uses: flowwer-dev/pull-request-stats@master
13+
uses: flowwer-dev/pull-request-stats@master

0 commit comments

Comments
 (0)