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

Commit d50c7ac

Browse files
committed
Hide IPC test program from code coverage
The InterProcessCommunication console test app is showing up in our code coverage report. It's part of the test harness and can be excluded.
1 parent 6ea3d21 commit d50c7ac

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Scenarios/tests/InterProcessCommunication/InterProcessCommunication.TestConsoleApp/InterProcessCommunication.TestConsoleApp.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " />
1414
<ItemGroup>
1515
<Compile Include="TestConsoleApp.cs" />
16+
<Compile Include="$(CommonPath)\System\Diagnostics\CodeAnalysis\ExcludeFromCodeCoverageAttribute.cs">
17+
<Link>Common\System\Diagnostics\CodeAnalysis\ExcludeFromCodeCoverageAttribute.cs</Link>
18+
</Compile>
1619
</ItemGroup>
1720
<ItemGroup>
1821
<None Include="project.json" />

src/Scenarios/tests/InterProcessCommunication/InterProcessCommunication.TestConsoleApp/TestConsoleApp.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
using System;
55
using System.Reflection;
66

7+
[assembly: System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
8+
79
namespace InterProcessCommunication.Tests
810
{
911
/// <summary>

0 commit comments

Comments
 (0)