Welcome to Typemock Answers. Here you can ask and receive answers from other community members. And if you liked or disliked an answer or thread: react with an up- or downvote Enjoy!

How to exclude a method and file from code coverage?

0 votes
How to exclude methods and files from being included while taking code coverage?

We have certain methods and files for which we don't need to write unit test cases. How can we not include them in code coverage.
asked Feb 13 by parinitha.n (120 points)

If you are using MSTest and Isolator 8.5.2 or later, you have the

[ExcludeFromCodeCoverage] 

attribute. You can read about it here.

 

1 Answer

0 votes
at this time Typemock doesn't have a manual filter mechanism.

What would you expect?
answered Feb 23 by eli (5,770 points)
...