Skip to content

Commit

Permalink
Disable Coverage Report for .NET 4.6.2 until issue can be determined
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnelson90 committed Dec 8, 2023
1 parent ba9341e commit 20279a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/4_6_2_Core_Unit_Tests_Win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ jobs:
- name: Run Certify.Core.Tests.Unit Tests
run: |
$env:GITHUB_WORKSPACE="$env:GITHUB_WORKSPACE\certify"
$env:GITHUB_STEP_SUMMARY=".\bin\Debug\net462\TestResults-4_6_2-${{ runner.os }}\test-summary.md"
dotnet test Certify.Core.Tests.Unit.csproj --no-build -v normal -f net462 -l trx -l "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;annotations.messageFormat=@error\n@trace" --results-directory ".\bin\Debug\net462\TestResults-4_6_2-${{ runner.os }}" /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /testadapterpath:C:\%HOMEPATH%\.nuget\packages\coverlet.msbuild\6.0.0\build -- RunConfiguration.CollectSourceInformation=true
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit
$env:GITHUB_STEP_SUMMARY=".TestResults-4_6_2-${{ runner.os }}\test-summary.md"
dotnet test Certify.Core.Tests.Unit.dll -v normal -f net462 -l trx -l "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;annotations.messageFormat=@error\n@trace" --results-directory "TestResults-4_6_2-${{ runner.os }}" -- RunConfiguration.CollectSourceInformation=true
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net462

- name: Generated Test Results Report
run: |
Expand All @@ -97,12 +97,12 @@ jobs:
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net462
if: ${{ always() }}

- name: Generated Test Coverage Report
run: |
reportgenerator -reports:./TestResults-4_6_2-${{ runner.os }}/**/coverage.cobertura.xml -targetdir:./TestResults-4_6_2-${{ runner.os }} -reporttypes:MarkdownSummaryGithub "-title:Test Coverage"
Get-Content -Path ./TestResults-4_6_2-${{ runner.os }}/SummaryGithub.md | Out-File -FilePath $env:GITHUB_STEP_SUMMARY
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net462
if: ${{ always() }}
# - name: Generated Test Coverage Report
# run: |
# reportgenerator -reports:./TestResults-4_6_2-${{ runner.os }}/**/coverage.cobertura.xml -targetdir:./TestResults-4_6_2-${{ runner.os }} -reporttypes:MarkdownSummaryGithub "-title:Test Coverage"
# Get-Content -Path ./TestResults-4_6_2-${{ runner.os }}/SummaryGithub.md | Out-File -FilePath $env:GITHUB_STEP_SUMMARY
# working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net462
# if: ${{ always() }}

- name: Upload dotnet test Artifacts
uses: actions/upload-artifact@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/8_0_Core_Unit_Tests_Linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
run: |
export GITHUB_WORKSPACE="$GITHUB_WORKSPACE/certify"
export GITHUB_STEP_SUMMARY="./TestResults-8_0-${{ runner.os }}/test-summary.md"
dotnet test Certify.Core.Tests.Unit.dll -v normal -f net8.0 -l trx -l "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;annotations.messageFormat=@error\n@trace" --collect:"XPlat Code Coverage" --results-directory "TestResults-8_0-${{ runner.os }}" /testadapterpath:$HOME/.nuget/packages/coverlet.collector/6.0.0/build/netstandard1.0 -- RunConfiguration.CollectSourceInformation=true
dotnet test Certify.Core.Tests.Unit.dll -v normal -f net8.0 -l trx -l "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;annotations.messageFormat=@error\n@trace" --results-directory "TestResults-8_0-${{ runner.os }}" --collect:"XPlat Code Coverage" --test-adapter-path "$HOME/.nuget/packages/coverlet.collector/6.0.0/build/netstandard1.0" -- RunConfiguration.CollectSourceInformation=true
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net8.0

- name: Generate Test Results Report
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/8_0_Core_Unit_Tests_Win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
run: |
$env:GITHUB_WORKSPACE="$env:GITHUB_WORKSPACE\certify"
$env:GITHUB_STEP_SUMMARY=".\TestResults-8_0-${{ runner.os }}\test-summary.md"
dotnet test Certify.Core.Tests.Unit.dll -v normal -f net8.0 -l trx -l "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;annotations.messageFormat=@error\n@trace" --collect:"XPlat Code Coverage" --results-directory "TestResults-8_0-${{ runner.os }}" /testadapterpath:C:\%HOMEPATH%\.nuget\packages\coverlet.collector\6.0.0\build\netstandard1.0 -- RunConfiguration.CollectSourceInformation=true
dotnet test Certify.Core.Tests.Unit.dll -v normal -f net8.0 -l trx -l "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;annotations.messageFormat=@error\n@trace" --results-directory "TestResults-8_0-${{ runner.os }}" --collect:"XPlat Code Coverage" --test-adapter-path "C:\%HOMEPATH%\.nuget\packages\coverlet.collector\6.0.0\build\netstandard1.0" -- RunConfiguration.CollectSourceInformation=true
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net8.0

- name: Generate Test Results Report
Expand Down

0 comments on commit 20279a8

Please sign in to comment.