Skip to content

Commit 0e69d39

Browse files
authored
chore: minimal code-coverage support (#214)
1 parent 5f4f3f5 commit 0e69d39

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020
uses: actions/setup-dotnet@v3
2121
with:
2222
dotnet-version: 6.0.x
23-
- run: dotnet test --configuration Release --filter 'TestCategory=Completed'
23+
- run: dotnet test --configuration Release --filter 'TestCategory=Completed' /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
2424
- run: dotnet pack src/FluentAssertions.Analyzers/FluentAssertions.Analyzers.csproj

src/FluentAssertions.Analyzers.Tests/FluentAssertions.Analyzers.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10+
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
11+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
12+
<PrivateAssets>all</PrivateAssets>
13+
</PackageReference>
1014
<PackageReference Include="FluentAssertions" Version="6.1.0" />
1115
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
1216
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />

0 commit comments

Comments
 (0)