Add test results

This commit is contained in:
Alex Hyett 2023-07-10 11:47:11 +01:00
parent ad5a311cb7
commit bd04e6518d
4 changed files with 22 additions and 1 deletions

View file

@ -17,4 +17,11 @@ jobs:
- name: Build - name: Build
run: dotnet build run: dotnet build
- name: Run Unit Tests - name: Run Unit Tests
run: dotnet test --filter Unit --no-restore --verbosity normal run: dotnet test --filter Unit --no-restore --verbosity normal
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Results
path: TestResults/*.trx
reporter: dotnet-trx

View file

@ -27,4 +27,9 @@
<ProjectReference Include="..\..\src\GitHubActionsDemo.Api.Sdk\GitHubActionsDemo.Api.Sdk.csproj" /> <ProjectReference Include="..\..\src\GitHubActionsDemo.Api.Sdk\GitHubActionsDemo.Api.Sdk.csproj" />
</ItemGroup> </ItemGroup>
<PropertyGroup>
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
<VSTestResultsDirectory>$(SolutionDir)/TestResults</VSTestResultsDirectory>
</PropertyGroup>
</Project> </Project>

View file

@ -28,4 +28,9 @@
<ProjectReference Include="..\..\src\GitHubActionsDemo.Api\GitHubActionsDemo.Api.csproj" /> <ProjectReference Include="..\..\src\GitHubActionsDemo.Api\GitHubActionsDemo.Api.csproj" />
</ItemGroup> </ItemGroup>
<PropertyGroup>
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
<VSTestResultsDirectory>$(SolutionDir)/TestResults</VSTestResultsDirectory>
</PropertyGroup>
</Project> </Project>

View file

@ -28,4 +28,8 @@
<ProjectReference Include="..\..\src\GitHubActionsDemo.Service\GitHubActionsDemo.Service.csproj" /> <ProjectReference Include="..\..\src\GitHubActionsDemo.Service\GitHubActionsDemo.Service.csproj" />
</ItemGroup> </ItemGroup>
<PropertyGroup>
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
<VSTestResultsDirectory>$(SolutionDir)/TestResults</VSTestResultsDirectory>
</PropertyGroup>
</Project> </Project>