No filters available at this point in time, you could use a custom attribute and then use the -excludebyattribute
feature.
How to add filters to OpenCover tool to skip some of the functions in classes?
-
04-07-2023 - |
Question
I am able to add filters to OpenCover for skipping the classes in open cover. I want to know, How to add filters to OpenCover tool to skip some of the functions in classes?
For Example something like below(but it is not working)
-[*AProjectManagement*]A.VsIde.AStudio.Project.Management.AProjectNode.AddFile
Where,
AProjectNode is class name and AddFile is a function.
Main reason for asking this, I am using the third party SDK Inferfaces and I have to implement all of them even though I am not using it in client code. I want to avoid coverage for those function.
Is it possible?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow