Hi
I have a lot of .xaml.cs files in my project that are hard/impossible to write good unit tests for and I would like to remove them from the Coverage Metric.
Of course I could go through the list of all files and remove them from metric aggregation, but that would be a lot of work.
Is it possible to get NCrunch to ignore all *.xaml.cs files?
Yours
/peter
Setup Problems
Can I exclude certain files from the NCrunch Metrics based on filename pattern?
Started by pgpoulsen on 3,357 views
Remco NCrunch Developer
#12759
15 Oct 2018 09:20 UTC
Hi Peter,
Thanks for posting!
There's no feature in NCrunch that lets you exclude coverage from files based on a wildcard. You're welcome to request one on uservoice if you like. Right now the exclusions are only handled through the toolbar options on the Metrics Window.
The only other option I can think of would be disable instrumentation for your .xaml.cs files using code coverage suppression comments, though in your situation I don't think this would be a very attractive approach.
Thanks for posting!
There's no feature in NCrunch that lets you exclude coverage from files based on a wildcard. You're welcome to request one on uservoice if you like. Right now the exclusions are only handled through the toolbar options on the Metrics Window.
The only other option I can think of would be disable instrumentation for your .xaml.cs files using code coverage suppression comments, though in your situation I don't think this would be a very attractive approach.
Post a reply
Log in to reply.