Skip to content

Commit b0a81df

Browse files
committed
Add GitHubActionsTestLogger
For improved display of failing/skipped tests on GitHub actions
1 parent a9c93c6 commit b0a81df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Build solution
3737
run: dotnet build
3838
- name: Run tests
39-
run: dotnet test --no-build --logger:"html;LogFileName=../../TestResults-${{ runner.os }}.html"
39+
run: dotnet test --no-build --logger "html;LogFileName=../../TestResults-${{ runner.os }}.html" --logger GitHubActions
4040
id: dotnet-test
4141
- name: Upload received files from failing tests
4242
uses: actions/upload-artifact@v2

tests/Serilog.Formatting.Log4Net.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
2121
</ItemGroup>
2222

23+
<ItemGroup Condition="$(ContinuousIntegrationBuild) == 'true'">
24+
<PackageReference Include="GitHubActionsTestLogger" Version="1.2.0" />
25+
</ItemGroup>
26+
2327
<PropertyGroup Label="Coverage">
2428
<!-- Automatically collect coverage when running `dotnet test` -->
2529
<CollectCoverage>true</CollectCoverage>

0 commit comments

Comments
 (0)