Code Line Coverage not showing for methods with default parameters Follow
Since downloading\installing dotCover 2017.2 a few weeks ago I have noticed that some of my tests are not showing that any lines are covered even though when I run the test it executes in the method and passes.
It appears that, for methods that have default parameters, if you don't specify the defaults in the method call from your test dotCover will not show that any lines are covered in your method.
Now this is either by design (to be fair I haven't read all the docs on dotCover) and is maybe an option that I can set or a HUGE shortcoming in dotCover. Has anyone else experienced this? Is there a setting somewhere that will allow line coverage to show for methods that have default parameters?
Please sign in to leave a comment.
Unfortunately, I can't reproduce the issue. Could you please provide an example of source code or a sample solution demonstrating the problem?
Thanks in advance!
Unfortunately I'm not able to reproduce it outside of the code that I discovered the issue in and even at that it seems to be intermittent. If I come across some commonality or a way to reproduce it I will post it here as soon as I can.