Add test results
This commit is contained in:
parent
ad5a311cb7
commit
bd04e6518d
4 changed files with 22 additions and 1 deletions
9
.github/workflows/build-and-test.yml
vendored
9
.github/workflows/build-and-test.yml
vendored
|
@ -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
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue