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.

Is There an Elegent Way to configure Exclusions?

See original GitHub issue

Hi there, Great tool - now coverage is possible on Linux!

The small annoying thing is to configure excluded files. Usually quote a lot of files/infrastrucutre boundaries should be excluded from unit tests - the list is quite large. Is there a better way to specify exclusion? Like OpenCover used special file for exclusion?

This is the what I have at the moment (long list…)

--exclude-sources '../src/**/Repositories/*.cs' --exclude-sources  '../src/**/Swagger'  --exclude-sources '../src/**/Data' --exclude-sources '../src/**/Startup.cs'  --exclude-sources '../src/**/Program.cs'  --exclude-sources <more exclusion here>

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
lucaslorentzcommented, Mar 27, 2018

@AdrianCohea , sounds like a good plan. This is related: https://github.com/lucaslorentz/minicover/issues/68 Maybe it’s better to add support for any parameter already, not only file exclusions.

0reactions
duanekingcommented, May 28, 2021

@lucaslorentz With respect, this is a huge need and it actively gets in the way of usage and creates defects because minicover doesn’t seem to understand that it should not be instrumenting tests by default.

I have a HUGE need for this feature and JSON is not a hard format as its natively supported by C#, why are you so against it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - I need an elegant way to exclude specific words from ...
Not sure if it is elegant but here I created a simple solution to detect the language or remove noise words from tweets...
Read more >
How to Set Windows Security Exclusions in Windows 11
To open Windows Security, double-click the app's shield icon within the system tray. You might need to click a Show hidden icons arrow...
Read more >
How to set Exclusions on Client manually?
Our plan was to create one policy for all computers in a single client group and then add the needed exclusions to the...
Read more >
Configure rule exclusions | Chronicle Security
Click the application menu apps and select Rules. Click the Exclusions tab. Click Create Exclusion to create a new exclusion. The Create Exclusion...
Read more >
How to Configure Exclusions for Security Manager - AV ...
Customer Level > Configuration > Security Manager > Global Exclusions. AV Defender Profile > General Settings > Exclusions.
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