Skip to content

Commit 1928906

Browse files
committed
Fixed: exclude source-generated files in local code coverage
1 parent 8915c7b commit 1928906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ VerifySuccessExitCode
1616
dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.DeterministicReport=true
1717
VerifySuccessExitCode
1818

19-
dotnet reportgenerator -reports:**\coverage.cobertura.xml -targetdir:artifacts\coverage
19+
dotnet reportgenerator -reports:**\coverage.cobertura.xml -targetdir:artifacts\coverage -filefilters:-*.g.cs
2020
VerifySuccessExitCode
2121

2222
dotnet pack --no-build --configuration Release --output artifacts/packages --version-suffix="pre"

0 commit comments

Comments
 (0)