Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 752bc8f

Browse files
Merge pull request #1904 from github/codecoverage-tweaks
Excluding code coverage for xaml files
2 parents 79ab9b0 + cefb047 commit 752bc8f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

codecov.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ comment:
2727

2828
fixes:
2929
- "/C/projects/visualstudio/::"
30+
31+
ignore:
32+
- "*.xaml"
33+
- "*.xaml.cs"
34+
- "**/SampleData/*"

scripts/Run-CodeCoverage.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ $opencover = Join-Path $opencoverDirectory OpenCover.Console.exe
4040
$opencoverArgs = @(
4141
"-target:`"$nunitConsoleRunner`"",
4242
"-targetargs:`"$opencoverTargetArgs`"",
43-
"-filter:`"+[GitHub*]* -[GitHub*UnitTests]*`"",
43+
"-filter:`"+[GitHub*]* -[GitHub*Unit]GitHub.*.SampleData -[GitHub*UnitTests]*`"",
44+
"-excludebyfile:*.xaml;*.xaml.cs",
4445
"-register:user -output:$rootDirectory\coverage.xml"
4546
) -join " "
4647

0 commit comments

Comments
 (0)