diff --git a/README.md b/README.md
index 74ab332c5..d87b263c6 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ Daily NuGet builds of the project are also available in our [MyGet](https://dotn
To build ML.NET from source please visit our [developers guide](docs/project-docs/developer-guide.md).
-[![codecov](https://codecov.io/gh/dotnet/machinelearning/branch/master/graph/badge.svg)](https://codecov.io/gh/dotnet/machinelearning)
+[![codecov](https://codecov.io/gh/dotnet/machinelearning/branch/master/graph/badge.svg?flag=production)](https://codecov.io/gh/dotnet/machinelearning)
| | Debug | Release |
|:---|----------------:|------------------:|
diff --git a/build/Codecoverage.proj b/build/Codecoverage.proj
index a73e79673..4861fc903 100644
--- a/build/Codecoverage.proj
+++ b/build/Codecoverage.proj
@@ -28,12 +28,22 @@
<_CodecovArgs Include="--branch;$(_BranchName)" Condition="'$(_BranchName)' != ''" />
<_CodecovArgs Include="-c;$(BUILD_SOURCEVERSION)" Condition="'$(BUILD_SOURCEVERSION)' != ''" />
<_CodecovArgs Include="-n;$(BUILD_DEFINITIONNAME)" Condition="'$(BUILD_DEFINITIONNAME)' != ''" />
- <_CodecovArgs Include="--flag;$(Configuration)" Condition="'$(Configuration)' != ''" />
<_CodecovArgs Include="-t;$(CodeCovToken)" Condition="'$(CodeCovToken)' != ''" />
+
+ <_CodecovFlags Include="$(Configuration)" Condition="'$(Configuration)' != ''" />
+ <_CodecovProductionFlags Include="@(_CodecovFlags)" />
+ <_CodecovProductionFlags Include="production" />
+ <_CodecovTestFlags Include="@(_CodecovFlags)" />
+ <_CodecovTestFlags Include="test" />
-
-
+
+
+
+
+
+
+
diff --git a/codecov.yml b/codecov.yml
index 9e79db67a..b6e291957 100644
--- a/codecov.yml
+++ b/codecov.yml
@@ -9,11 +9,9 @@ coverage:
default: false
fixes:
- "build/::/"
- ignore:
- - "test"
comment:
- layout: "diff"
+ layout: "diff,flags"
flags:
production:
diff --git a/test/Directory.Build.targets b/test/Directory.Build.targets
index 88f693b83..31dd972b0 100644
--- a/test/Directory.Build.targets
+++ b/test/Directory.Build.targets
@@ -2,4 +2,18 @@
+
+
+
+ <_CoverletOriginalTargetPath>$(TargetPath)
+ $([System.IO.Path]::GetDirectoryName($(TargetPath)))\NonExistent.dll
+
+
+
+
+
+ $(_CoverletOriginalTargetPath)
+
+
+
\ No newline at end of file