2
votes

Consider this controller method from an ASP.Net MVC3 project: enter image description here

Having run dotCover code coverage, the Details method has clearly been covered by a test, as indicated by the green highlighting (arrowed).

However, when I try to use ReSharper to navigate to "covering tests", it reports no coverage: enter image description here

dotCover clearly knows which tests have covered the code, as shown in the ReSharper test runner: enter image description here

So did I miss something? Shouldn't ReSharper be able to tesll me which tests covered a particular statement? Did I find a bug? Should I report it against dotCover, ReSharper or MSpec?

1
Where in the test is it covered? If it is in a set-up/tear-down phase then it may not be considered to be covered by a test - perhaps...Shaun Wilde

1 Answers

2
votes

This is unfortunately a known bug with dotCover and it's not clear from comments to this bug report whether the problem is going to be fixed anytime soon.

BTW "Navigate to covering tests" is dotCover's functionality, not ReSharper's.