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.

Excluding Assemblies

See original GitHub issue

When I used coverlet to analyze code coverage, I got this:

| Module                     | Coverage |
|----------------------------|----------|
| EditorConfigGenerator.Core | 97.5%    |
| NUnit3.TestAdapter         | 30.7%    |

I don’t want NUnit3.TestAdapter to show up. But I don’t own this code, so I can’t put attributes on their classes or exclude code files from then as I don’t have that either.

Is there a way to say only include specific assemblies during analysis, or exclude certain ones? Either way would work (though I’d prefer the former as I don’t have to keep blacklisting any that may show up in the future).

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bpaczkowskicommented, Feb 26, 2020

Is there a way to accomplish this without having to manually include/exclude assemblies? Coverlet should exclude references by default IMO.

0reactions
mehdihadelicommented, Jan 12, 2023

@MarcoRossignoli I think it is more cleaner result if we can exclude local references as default instead of using exclude. usually we have separated tests and coverage for local references projects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I force exclusion of certain assemblies from Code ...
I'm trying to restrict the assemblies that get analyzed in the Code Coverage procedure in TFS by using a runsettings file, but some...
Read more >
Customizing Code Coverage Analysis - Visual Studio
You can include or exclude assemblies or specific types and members from code coverage analysis. If the Include section is empty or omitted, ......
Read more >
Including and Excluding Assemblies from Code Coverage
What I want to do is exclude the test assemblies from the coverage numbers, but the ExcludeFromCodeCoverageAttribute can't be applied to entire ...
Read more >
Excluding assemblies from coverage
Hi NCover,. I have attempted to exclude assemblies from coverage, but they are still included. As they contain my unit tests they are...
Read more >
How to exclude test assemblies · Issue #1179 · coverlet- ...
In any case, I tried to exclude test assemblies by setting the IncludeTestAssembly flag to false but some test assemblies still appear in ......
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