Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit 58dc690

Browse files
committed
test: Added action to publish test result
1 parent 4966500 commit 58dc690

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
SDK_VERSION_7: '7.0.100'
1515
SDK_VERSION_6: '6.0.403'
1616
SDK_VERSION_5: '5.0.408'
17+
TEST_RESULTS_DIRECTORY: './TestResults'
1718

1819

1920
jobs:
@@ -40,5 +41,11 @@ jobs:
4041
- name: "Build"
4142
run: dotnet build --configuration Release --no-restore
4243

43-
- name: "Test"
44-
run: dotnet test --configuration Release --no-build --verbosity normal --logger "console;verbosity=detailed"
44+
- name: "Run tests"
45+
run: dotnet test --configuration Release --no-build --verbosity normal --results-directory ${{ env.TEST_RESULTS_DIRECTORY }} --logger "junit;LogFileName=test-result-$(uuidgen).xml" --logger "console;verbosity=detailed"
46+
47+
- name: "Publish test results"
48+
uses: test-summary/action@v2
49+
if: always()
50+
with:
51+
paths: "${{ env.TEST_RESULTS_DIRECTORY }}/**/*.xml"

tests/PowerUtils.AspNetCore.ErrorHandler.Tests/PowerUtils.AspNetCore.ErrorHandler.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<PrivateAssets>all</PrivateAssets>
3939
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
4040
</PackageReference>
41+
<PackageReference Include="JunitXml.TestLogger" Version="3.0.114" />
4142
</ItemGroup>
4243

4344

0 commit comments

Comments
 (0)