Skip to content

Commit

Permalink
Debug Windows .NET Core 8.0 Test Result Generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnelson90 committed Dec 6, 2023
1 parent c1085a6 commit a736fa1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/8_0_Core_Unit_Tests_Win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ jobs:

- name: Run Certify.Core.Tests.Unit Tests
run: |
# echo "D:\a\certify\certify\certify" | Out-File -FilePath $env:GITHUB_WORKSPACE -Encoding utf8
$env:GITHUB_WORKSPACE="D:\a\certify\certify\certify"
$env:GITHUB_STEP_SUMMARY="./TestResults-8_0-${{ runner.os }}/test-summary.md"
# echo "# Test Results" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8
$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
Get-Content -Path ./TestResults-8_0-${{ runner.os }}/test-summary.md | Out-File -FilePath $env:GITHUB_STEP_SUMMARY
dir .\TestResults-8_0-${{ runner.os }}
dir .
echo "# Test Results" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Encoding utf8 -Append
Get-Content -Path .\TestResults-8_0-${{ runner.os }}\test-summary.md | Out-File -FilePath $env:GITHUB_STEP_SUMMARY
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net8.0

- name: Generated Test Coverage Report
Expand Down

0 comments on commit a736fa1

Please sign in to comment.