Skip to content

Commit

Permalink
Run Testcontainers.Databases.Tests only and collect both trx and html…
Browse files Browse the repository at this point in the history
… reports
  • Loading branch information
0xced committed Feb 4, 2024
1 parent e65b462 commit 8bf105d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
run: dotnet cake --target=Build

- name: Run Tests
run: dotnet cake --target=Tests --test-filter=${{ startsWith(matrix.os, 'ubuntu') && 'FullyQualifiedName~ContainerRestartTest' || 'DockerPlatform=Windows' }}
run: dotnet test tests/Testcontainers.Databases.Tests/Testcontainers.Databases.Tests.csproj

- name: Upload Test And Coverage Results
uses: actions/upload-artifact@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@
<ProjectReference Include="../Testcontainers.*.Tests/Testcontainers.*.Tests.csproj"/>
<ProjectReference Remove="Testcontainers.Databases.Tests.csproj"/>
</ItemGroup>
<ItemGroup>
<VSTestLogger Include="trx%3BLogFileName=$(MSBuildProjectName).trx" Visible="false" />
<VSTestLogger Include="html%3BLogFileName=$(MSBuildProjectName).html" Visible="false" />
</ItemGroup>
<PropertyGroup>
<VSTestResultsDirectory>$([System.IO.Path]::Combine($(MSBuildThisFileDirectory), '..', '..', 'test-results'))</VSTestResultsDirectory>
<VSTestLogger>@(VSTestLogger)</VSTestLogger>
</PropertyGroup>
</Project>

0 comments on commit 8bf105d

Please sign in to comment.