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.

Add `[xunit*]*` to default excluded modules filter

See original GitHub issue

@vagisha-nidhi’s comment

Also, I have been trying out things with xunit/nunit and I found this https://github.com/tonerdo/coverlet/issues/361#issuecomment-470044541. This would be a bad experience for any first user, if a test run crashes with --collect:“Xplat code coverage”.

Should we add [xunit*]* to default exclude filter here https://github.com/tonerdo/coverlet/blob/master/src/coverlet.collector/Utilities/CoverletConstants.cs#L21?

cc: @cltshivash @tonerdo @onovotny

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MarcoRossignolicommented, Jun 10, 2019

I would also suggest it exclude .test.dll/.tests.dll assemblies as you almost never want to instrument and report on the unit test assembly itself.

@onovotny at the moment we exclude by default test assembly, added back in https://github.com/tonerdo/coverlet/pull/376 after some discussions, @sharwell has got a different point of view 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add `[xunit*]*` to default excluded modules filter · Issue #461
If for some reason someone need to instrument a lib included in that filters? Is it too much coarse filter? I mean if...
Read more >
How to exclude xunit test assemblies from Jetbrains ...
Having no filters results in the following xml in the logs ... Adding in the line /Filters=-:module=MyAssembly.Web.Tests changes the xml to ...
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 >
Coverage Analysis from the Command Line - dotCover
To exclude/include items from the coverage analysis, you should run the console runner with the /Filters parameter. For example (for simplicity, ...
Read more >
Excluding Files and Folders
You can specify files or directories that you'd like to exclude from your analysis using in-app configuration, or using the
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