No Unit Testing option in Stand-alone application?

I have .NET 4.x assemblies with NUnit unit tests that I would like to run from the stand-alone dotCover application.

But when I open the stand-alone app, I do not have a "Unit Testing" section in my File | Options. I only have an "Environment" section. I do *not* have Resharper installed. I am running Visual Studio Express, but I am *not* trying to run this from inside visual studio.

Please advise!



Attachment(s):
dotcover_nounit.png
5 comments

Hello Nick,

If you want to run coverage analysis for your NUnit tests using dotCover standalone, please choose the 'Standalone Application' type, specify the path to NUnit console executable file and the path to a test assembly. See the screenshot below.


Kind regards,

Maria



Attachment(s):
Coverage_Configuration.png
0

Thanks, Maria. I tried as you suggested, and ran all the unit tests in my application, but I had no (none, zero, blank, empty, not one lick of code or reference to my classes) results in my profiling output window. Do you actually get results for your assembly when running this way?

I originally (I’d done this already) thought this was because NUnit is loading my assembly dynamically. Now I’m thinking it could be either 1) x86 vs 64-bit NUnit, 2) still could be dynamic loading of the assembly, 3) maybe I need to be using a specific version of NUnit, or some special parameters from within NUnit?

EDIT I just saw that you were using

nunit-x86-console
instead of
nunit-x86.exe
. I’m going to give this a shot.


Attachment(s):
dotcover_nounit3.png
dotcover_nounit2.png
0

I ran

nunit-x86-console.exe
and had the same output: nothing. All my tests ran properly, but no output in
dotTrace
.
0

By default, my NUnit is using

.Net 3.5
. I had to modify
nunit-x86.exe.config
and add:
<startup>
    <requiredRuntime version="4.0.30319" />
</startup>

as mentioned in this post on Stack Overflow. My assemblies are all

.Net 4.5
. Now I’m getting proper results through
dotTrace
. Thanks for your help!
0

Hello Nick,

Thank you for the information. I'm glad that you've managed to get it working.


Kind regards,
Maria



0

Please sign in to leave a comment.