Skip to content

Commit

Permalink
update dotnet.tml for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Logsdon committed Apr 24, 2024
1 parent f9dfe6d commit 9a4a6bc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,14 @@ jobs:
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal --filter "FullyQualifiedName!~ServiceQuery.Xunit.Integration"
run: dotnet test --no-build --verbosity normal --filter "FullyQualifiedName!~ServiceQuery.Xunit.Integration" -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover
- name: Create Test Coverage Badge
uses: simon-k/dotnet-code-coverage-badge@v1.0.0
id: create_coverage_badge
with:
label: Unit Test Coverage
color: brightgreen
path: src/V2/Tests/ServiceQueryNet8.Xunit/TestResults/coverage.opencover.xml
gist-filename: servicequery-codecoverage.json
gist-id: 5a0fab9a9341bb94e27da49a1e89fd03
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }}

0 comments on commit 9a4a6bc

Please sign in to comment.