Skip to content

Commit

Permalink
Using .NET 8's code coverage computation (#721)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Cortes <[email protected]>
  • Loading branch information
louis-z and Toa741 authored Jul 18, 2024
1 parent 21fbeca commit e5a18c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
"artifact_name=test-results-$value" >> $env:GITHUB_OUTPUT
name: Set artifact name
id: set-artifact-name
- run: dotnet test --configuration ${{matrix.configuration}} --logger trx --results-directory "${{env.TestResultsDirectory}}" --collect:"XPlat Code Coverage" /p:RunAnalyzers=false
- run: dotnet test --configuration ${{matrix.configuration}} --logger trx --results-directory "${{env.TestResultsDirectory}}" --collect:"Code Coverage;Format=cobertura" /p:RunAnalyzers=false
name: Run tests
- uses: actions/upload-artifact@v4
if: always()
Expand Down
4 changes: 0 additions & 4 deletions NGitLab.Tests/NGitLab.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,5 @@
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="Polly" Version="8.4.1" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>

0 comments on commit e5a18c5

Please sign in to comment.