question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why Coverlet use custom attribute ExcludeFromCoverage instead of ExcludeFromCodeCoverage

See original GitHub issue

Hi guys!

Why Coverlet use the custom attribute ExcludeFromCoverage from its own namespace instead of using already exists in .NET Core attribute ExcludeFromCodeCoverage from namespace System.Diagnostics.CodeAnalysis?

To Coverlet ignore any class, I need to install the nuget package coverlet.msbuild in all projects with tests, right?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

4reactions
tonerdocommented, Jun 12, 2018
2reactions
StillLearnincommented, Apr 3, 2018

Is there any reason to not support ExcludeFromCodeCoverage as well? That would make it easier to transition to Coverlet from other products.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Coverlet use custom attribute ExcludeFromCoverage ...
Hi guys! Why Coverlet use the custom attribute ExcludeFromCoverage from its own namespace instead of using already exists in .
Read more >
How to exclude method in coverlet coverage report?
Excluding entire namespaces in .runsettings works as expected but using [ExcludeFromCodeCoverage] attribute excludes the entire file instead ...
Read more >
C# ExcludeFromCodeCoverage on method scope not ...
I had found that issue but since we do not use coverlet and the excludefromcodecoverage attribute docs say that it works on method...
Read more >
Customizing Code Coverage Analysis - Visual Studio
Learn how to use the ExcludeFromCodeCoverageAttribute attribute to exclude test code from coverage results. You can include assemblies ...
Read more >
ExcludeFromCodeCoverageAttri...
Placing this attribute on a class or a structure excludes all the members of that class or structure from the collection of code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found