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
|
||||
run: dotnet build
|
||||
- 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" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
|
||||
<VSTestResultsDirectory>$(SolutionDir)/TestResults</VSTestResultsDirectory>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -28,4 +28,9 @@
|
|||
<ProjectReference Include="..\..\src\GitHubActionsDemo.Api\GitHubActionsDemo.Api.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
|
||||
<VSTestResultsDirectory>$(SolutionDir)/TestResults</VSTestResultsDirectory>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -28,4 +28,8 @@
|
|||
<ProjectReference Include="..\..\src\GitHubActionsDemo.Service\GitHubActionsDemo.Service.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
|
||||
<VSTestResultsDirectory>$(SolutionDir)/TestResults</VSTestResultsDirectory>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in a new issue