Skip to content

Commit

Permalink
generate trx report
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsonax committed Dec 7, 2024
1 parent 3656ff5 commit ca861a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ jobs:
- name: Check code formatting
run: dotnet format --no-restore --verify-no-changes -v diag
- name: Build
run: dotnet build --no-restore
run: dotnet build
--no-restore
--configuration Release
- name: Test
working-directory: Tests/CleanAspCore.Api.Tests
run: >
dotnet test
dotnet run
--no-build
--collect "Code Coverage;Format=cobertura"
--verbosity normal
--logger GitHubActions
--configuration Release
--coverage
--report-trx
4 changes: 3 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0"/>
<PackageVersion Include="Microsoft.Extensions.Http.Polly" Version="9.0.0"/>
<PackageVersion Include="Microsoft.Identity.Web" Version="3.4.0"/>
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.13.1"/>
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="1.4.3"/>
<PackageVersion Include="TUnit" Version="0.4.86"/>
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.10.0"/>
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.10.0"/>
Expand All @@ -34,4 +36,4 @@
<PackageVersion Include="Swashbuckle.AspNetCore" Version="7.1.0"/>
<PackageVersion Include="Testcontainers.MsSql" Version="4.0.0"/>
</ItemGroup>
</Project>
</Project>
10 changes: 2 additions & 8 deletions Tests/CleanAspCore.Api.Tests/CleanAspCore.Api.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,11 @@
<ItemGroup>
<PackageReference Include="Bogus"/>
<PackageReference Include="FluentAssertions"/>
<PackageReference Include="GitHubActionsTestLogger">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational"/>
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage"/>
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport"/>
<PackageReference Include="TUnit"/>
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Refit"/>
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit ca861a0

Please sign in to comment.