Skip to content

Commit 85fe705

Browse files
committed
💚 Enforce code coverage
1 parent 62bbb6c commit 85fe705

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.envrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### External Testing Controls
2+
export K_SOUP_COV_DO=true # Means you want code coverage
3+
# Available formats are html, xml, rcov, lcov, json, tty
4+
export K_SOUP_COV_COMMAND_NAME="MiniTest Coverage"
5+
export K_SOUP_COV_FORMATTERS="html,tty"
6+
export K_SOUP_COV_MIN_BRANCH=86 # Means you want to enforce X% branch coverage
7+
export K_SOUP_COV_MIN_LINE=97 # Means you want to enforce X% line coverage
8+
export K_SOUP_COV_MIN_HARD=true # Means you want the build to fail if the coverage thresholds are not met
9+
export K_SOUP_COV_MULTI_FORMATTERS=true
10+
export MAX_ROWS=5 # Setting for simplecov-console gem for tty output, limits to the worst N rows of bad coverage
11+
export DEBUG=true # allow byebug statements

.github/workflows/coverage.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Ruby - Coverage
22

33
env:
4-
K_SOUP_COV_MIN_BRANCH: 71
5-
K_SOUP_COV_MIN_LINE: 89
4+
K_SOUP_COV_MIN_BRANCH: 86
5+
K_SOUP_COV_MIN_LINE: 97
66
K_SOUP_COV_MIN_HARD: true
77
K_SOUP_COV_DO: true
88
K_SOUP_COV_COMMAND_NAME: "MiniTest Coverage"
@@ -73,7 +73,7 @@ jobs:
7373
hide_complexity: true
7474
indicators: true
7575
output: both
76-
thresholds: '93 82'
76+
thresholds: '97 86'
7777
continue-on-error: ${{ matrix.experimental != 'false' }}
7878

7979
- name: Add Coverage PR Comment

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
### Removed
1212

1313
## 2.0.0 - 2024-09-04
14+
COVERAGE: 97.72% -- 214/219 lines in 3 files
15+
BRANCH COVERAGE: 86.00% -- 43/50 branches in 3 branches
1416
### Changed
1517
- Upgraded to rack v2+
1618
- Switched ruby-openid => ruby-openid2

0 commit comments

Comments
 (0)