DotCover doesn't work with vstest.console.exe and InIsolation tests

For running VS2012 MSTests using vstest.console.exe, DotCover returns 0% coverage for all code paths, becuase the tests are being run in insolation. The reason for the tests running in isolation, is because we're using the Microsoft Fakes framework to simulate DateTime and other things.

Is this something that's expected to be fixed in a nearby future?

2 comments

I have the same problem. I'm using VS 2012 with Microsoft Fakes and my unit tests that use the microsoft fakes technology fail with:

TestInitialize threw exception. Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: UnitTestIsolation instrumentation failed to initialize. Please restart Visual Studio and rerun this test.

0

Hi guys,

dotCover currently doesn't have an ability to cover tests which use Fakes/Moles mocking framework.
Here's a corresponding task in YouTrack: http://youtrack.jetbrains.com/issue/DCVR-2341
You're welcome to vote for it and track its status.

Regards.

0

Please sign in to leave a comment.