diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 45a37a9..4edcf1c 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -8,6 +8,13 @@ "reportgenerator" ], "rollForward": false + }, + "dotnet-coverage": { + "version": "18.6.2", + "commands": [ + "dotnet-coverage" + ], + "rollForward": false } } } \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e99f5b2..32cdfa6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,11 +41,15 @@ jobs: - name: Restore dependencies run: dotnet restore + - name: Restore .NET tools + run: dotnet tool restore + - name: Build run: dotnet build --no-restore --configuration Release - name: Test - run: dotnet test --no-build --configuration Release --verbosity normal --logger "trx;LogFileName=test-results.trx" --collect:"XPlat Code Coverage" + shell: bash + run: dotnet dotnet-coverage collect --output-format cobertura --output TestResults/coverage.cobertura.xml "dotnet test --no-build --configuration Release --verbosity normal --logger \"trx;LogFileName=test-results.trx\"" - name: Test Summary if: always() && matrix.os == 'ubuntu-latest' diff --git a/Directory.Packages.props b/Directory.Packages.props index 89cd72e..ffc8590 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,11 +7,10 @@ - + - - - + + \ No newline at end of file diff --git a/tests/TagLibSharp2.Tests/TagLibSharp2.Tests.csproj b/tests/TagLibSharp2.Tests/TagLibSharp2.Tests.csproj index 2cc9a03..0a7092f 100644 --- a/tests/TagLibSharp2.Tests/TagLibSharp2.Tests.csproj +++ b/tests/TagLibSharp2.Tests/TagLibSharp2.Tests.csproj @@ -11,7 +11,6 @@ -