-
Notifications
You must be signed in to change notification settings - Fork 392
Closed
Labels
feature-requestNew feature requestNew feature request
Description
Description
When an assembly decorated with ExcludeFromCodeCoverage attribute, it is not excluded from coverage report.
Repro steps
Example code:
using System.Diagnostics.CodeAnalysis;
using System
[assembly: ExcludeFromCodeCoverage]
namespace ExampleNs
{
public class ExampleClass:
{
public Guid Id { get; set; }
}
}
Expected behavior
Assembly is excluded from the coverage report
Actual behavior
Assembly is included in the coverage report
Known workarounds
Passing the assembly with --exclude "[Assembly]*" works
Related information
Cross platform .NET Core code coverage tool version 1.3.0.0
Visual Studio Version: Visual Studio Professional 2017
Microsoft (R) Test Execution Command Line Tool Version 15.9.0
Test project build with .Net Core 2.1
Metadata
Metadata
Assignees
Labels
feature-requestNew feature requestNew feature request