Skip to content

Commit

Permalink
chore: adjust coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
BytePender committed Dec 30, 2024
1 parent 673e3d8 commit 0b35817
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,16 @@ jobs:
comment-id: ${{ steps.fc.outputs.comment-id || '' }}
edit-mode: replace
body: |
go-test-coverage report:
## ๐Ÿ“Š Coverage Report
<details>
<summary>Click to see detailed coverage report</summary>
```
${{ steps.coverage.outputs.report }}
```
</details>
- name: Check Coverage
if: steps.coverage.outcome == 'failure'
Expand Down
27 changes: 26 additions & 1 deletion .testcoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,29 @@ exclude:
paths:
- "tests"
- "examples/"
- "mock/"
- "mock/"

# ่ฎพ็ฝฎๆ€ปไฝ“่ฆ†็›–็Ž‡่ฆๆฑ‚
total:
statements: 75

# ๆŒ‰ๅŒ…็ปŸ่ฎก่ฆ†็›–็Ž‡
by-package:
# ๆฏไธชๅŒ…็š„ๆœ€ไฝŽ่ฆ†็›–็Ž‡่ฆๆฑ‚
threshold: 60
# ๅฑ•็คบๆ‰€ๆœ‰ๅŒ…็š„่ฆ†็›–็Ž‡๏ผŒ่€Œไธๆ˜ฏๅชๅฑ•็คบๆœช่พพๆ ‡็š„ๅŒ…
show-all: true

# ๆŒ‰ๆ–‡ไปถ็ปŸ่ฎก่ฆ†็›–็Ž‡
by-file:
# ๆฏไธชๆ–‡ไปถ็š„ๆœ€ไฝŽ่ฆ†็›–็Ž‡่ฆๆฑ‚
threshold: 50
# ๅฑ•็คบๆ‰€ๆœ‰ๆ–‡ไปถ็š„่ฆ†็›–็Ž‡
show-all: true

# ๅขž้‡่ฆ†็›–็Ž‡้…็ฝฎ
diff:
# ๆ–ฐๅขžไปฃ็ ็š„ๆœ€ไฝŽ่ฆ†็›–็Ž‡่ฆๆฑ‚
threshold: 80
# ๅฑ•็คบๆ‰€ๆœ‰ๅ˜ๆ›ดๆ–‡ไปถ็š„่ฆ†็›–็Ž‡
show-all: true

0 comments on commit 0b35817

Please sign in to comment.