Skip to content

Commit

Permalink
Improve code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
akunzai committed Sep 28, 2024
1 parent 306f1fa commit a607142
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
run: |
dotnet test --collect:"XPlat Code Coverage"
dotnet tool restore
dotnet tool run reportgenerator "-reports:**/coverage.cobertura.xml" "-targetdir:coverlet/reports" "-reporttypes:Cobertura"
dotnet tool run reportgenerator
[[ -f "./coverage/Summary.txt" ]] && cat "./coverage/Summary.txt"
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -385,4 +385,7 @@ yarn-debug.log*
yarn-error.log*

# pnpm
.pnpm-store/
.pnpm-store/

# coverage reports
/coverage/
5 changes: 5 additions & 0 deletions .netconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; https://github.com/danielpalme/ReportGenerator
[ReportGenerator]
reports = "**/coverage.cobertura.xml"
targetdir = "coverage"
reporttypes = "Cobertura;TextSummary"

0 comments on commit a607142

Please sign in to comment.