Reply to comment

roger's picture

Using PartCover with NUnit on 64-bit Windows

Some random notes:

Running PartCover.exe on x64

If you run it, you'll get the following error message:

Retrieving the COM class factory for component with CLSID {FB20430E-CDC9-45D7-8453-272268002E08} failed due to the following error: 80040153.
This is because the COM class requested is 32-bit only, and PartCover is running as a 64-bit app. To fix it, you'll need to use CORFLAGS:
"%VS90COMNTOOLS%\vsvars32"
CORFLAGS /32BIT+ /FORCE path\to\partcover.exe

Running PartCover with NUnit

First, you need to get nunit-console-x86 working:

nunit-console-x86 path\to\unit.tests.dll

PartCover inclusions

You'll probably forget this bit (I usually do), but you need to tell PartCover what to include in its coverage analysis:

partcover --target path\to\nunit-console-x86.exe --target-args path\to\unit.tests.dll --include [*]* --output PartCoverResults.xml

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <b> <blockquote> <br> <code> <dd> <dl> <dt> <hr> <h1> <h2> <h3> <i> <img> <li> <ol> <p> <pre> <table> <td> <th> <tr> <tt> <u> <ul>
  • Images can be added to this post.

More information about formatting options