Tests run with Nunit but not with dotCover, TestFixtureSetUp failed, Exception doesn't have a stacktrace

Dear dotCover Users --

Please help.

Why do all my tests pass when running with Nunit but they fail when running with dotCover?

Here are the details.

I have downloaded and installed the latest, ReSharper Ultimate 2015.2, which as dotCover 3.2, and all that is reported as "up to date" by ReSharper About.

I have a simple class library project written in C# in VS 2013 with some basic Nunit test in it.

If I simply right-click on a test and choose "Run Test" or "Debug Test" and run them they all pass-- dotCover is NOT used to run the tests in this case-- so the tests seem fine.

However, if I run the tests using dotCover, all but one of the tests fail.

The error I am getting is something like...

TestFixtureSetUp failed.... Exception doesn't have a stacktrace

....and I will dig into that more to see what is going on...

...but my question is more basic-- Why do my tests pass when I run them with Nunit but fail when I run them with dotCover?

Please advise.

Thanks.

-- Mark Kamoski

4 comments

Hello Mark,

Is it possible for you to share this project/solution with us?


Kind regards,
Maria

0

Maria --

I appreciate your reply.

I am sorry but I cannot post company code, due to company rules, etc.

I think it maybe some references that are odd, due to nuget and other project dependencies in the solution.

It is a complicated and complex solution with 30+ projects in it.

Anyway, I am trying nCrunch right now and that seems to be working.

I will cycle back to dotCover (maybe) but I have to say that since ReSharper is still breaking IntelliSense for me (a long term bug now in ReSharper well documented in the forums) and so I am not sure I can go with ReSharper Ulitimate (with dotCover in it) but we will see.

(Version Info-- VS 2013 Pro Update 5 plus ReSharper Ultimate 2015.2 downloaded today.)

Thanks.

-- Mark Kamoski

0

Hello Mark,

I understand. It would be also great, if you could send us log files. To get them, start Visual Studio with the following command line arguments: devenv.exe /ReSharper.LogLevel Trace /ReSharper.LogFile. Log files will be saved to the '%Temp%\JetLogs' folder with auto-generated names, so empty this folder before you launch Visual Studio and start working with dotCover.
Could you please tell us whether you perform obfuscation?


Kind regards,

Maria

0

Same problem here, some tests run fine but with cover they fail...

I cannot post any code either :(

I could provide some logs if you tell me where to send them :)

0

Please sign in to leave a comment.