Can OpenCover get code coverage with Microsoft.Moles.Runner and Nunit? -


I'm using OpenCover with Visual Studio2010 Professional It works well with NUnit on the command line.

  OpenCover.Console.exe -register: user -target: "C: \ bin \ NUnit 2.6 \ bin \ nunit-console.exe" -targetargs: "C: \ App \ Test \ ApplicationTest \ bin \ Debug \ ApplicationTest.dll "-targetdir:" C: \ app \ bin \ debug "-output: html \ result.xml   

The result is below.

NUINT-Console Version 2.6.0.12051 Copyright (c) 2002-20011 Charlie
Pool. Copyright (c) 2002-2004 James W. Newark, Michael C. Two,
Alexey A Vorontov Copyright (c) 2000-2002 Philip Craig All Rights Reserved -

Runtime Environment - OS Version: Microsoft Windows NT 6.1.7601
Service Pack 1 CLR Version: 4.0.30319.269 (Net 4.0)

ProcessModel: Default Domain Usage: Single Execution Runtime:
Net-4.0.0 Test run: 2, Errors: 0, Failures: 0, drawn, 0, time: 42.14 seconds not run: 0, Invalid: 0, Ignored: 0, Abandoned: 0

Commitment. .. Class 1 95 (33.7142857142857) was looked after - 4131 methods 268 (6.48753328491891) Views 15137 of 71763

(21.0 9 30423755975) Branches of 196 806 (2.44236760124611)

==== Alternate results (in which all methods include free corrodon ding source) ==== Optional Visitors category 59 of 207
(28.5024154589372) Optional methods used 284 of 4371

(6.49736902310684)

Although it does not work with Microsoft Socks OpenCover.Console.exe- Registration: User-targeted: "C: \ Program Files \ Microsoft Moles \ bin \ Moles.runner.x86.exe" -targetners: "" "" C: \ App \ Test \ ApplicationTest \ bin \ Debug \ ApplicationTest.dll \ "/ r:" "C: \ bin \ NUnit 2.6 \ bin \ nunit-Console.exe" "-targetdir:" C: \ app \ bin \ debug "-output: html \ result.xml

This result is below.

Microsoft Moles Runner v0.94.51023.0 -
-. Net v4.0.30319 Copyright (c)
Microsoft Corporation 2007-2010 All rights reserved.

Started

NUnit-Console Version 2.6.0.12051 CLR Version: 4.0.30319.269 (Net 4.0)

ProcessModel: Default Domain Usage : Single Executing Runtime:
Net-4.0.0 Test runs: 2, Errors: 0, Failures: 0, drawn, 0, time: 28.004 seconds not running: 0, invalid: 0, omitted: 0, omitted: 0

... Viewed class 2 of 0 (0) Visited methods 0 of 14 (0)
Tours number 0 45 (0) 2 out of branches 0 (0)

==== Optional results (Include all methods including source of no congestion ding) ==== Optional (2) of optional classes 0 (0)
Optional Visits 0 to 16 (0) < Br>

Trials of tests Both be right but there is no coverage.

I tried to change the logic of Moles, examples '/ args:' / domain = multiple '', -arlatepe etc., but it never works.

Should someone pay attention to me what should I do? Can OpenCover use the mall with Nunit?

First of all, add the code below in the batch file or set it as a command line .

Set CLRMONITOR_EXTERNAL_PROFILERS = {1542C21D-80C3-45E6-A56C-A9C1E4BEB7B8}

This link may be helpful < / Html>

Comments