diff --git a/.github/workflows/build-pipeline.yml b/.github/workflows/build-pipeline.yml index e679822..ff7929b 100644 --- a/.github/workflows/build-pipeline.yml +++ b/.github/workflows/build-pipeline.yml @@ -40,16 +40,8 @@ jobs: - name: 'Run tests' run: | cd '${{ github.workspace }}/MewtocolTests' - dotnet test --logger "trx;logfilename=testresults.trx" - #Generate a test report - - name: 'Generate Test Report' - uses: dorny/test-reporter@v1 - if: success() || failure() # run this step even if previous step failed - with: - name: Unit Test Report # Name of the check run which will be created - path: '${{ github.workspace }}/MewtocolTests/TestResults/testresults.trx' # Path to test results - reporter: dotnet-trx # Format of test results - #Upload to codecov + dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover + #Upload to codecov - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: diff --git a/MewtocolTests/MewtocolTests.csproj b/MewtocolTests/MewtocolTests.csproj index 0e1e112..9d3002f 100644 --- a/MewtocolTests/MewtocolTests.csproj +++ b/MewtocolTests/MewtocolTests.csproj @@ -9,6 +9,10 @@ + + runtime; build; native; contentfiles; analyzers; buildtransitive + all +