Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to use OpenCover and ReportGenerator using MSTest on .Net. I used
following commands in my batch file which i put in root dir. of my test project. But i got error:

"
Executing: C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe
Microsoft (R) Test Execution Command Line Tool Version 12.0.21005.1
Copyright (c) Microsoft Corporation. All rights reserved.

Please specify tests to run, or specify the /publish switch to publish results.

For switch syntax, type "MSTest /help"
Committing...
No results, this could be for a number of reasons. The most common reasons are:
1) missing PDBs for the assemblies that match the filter please review the
output file and refer to the Usage guide (Usage.rtf) about filters.
2) the profiler may not be registered correctly, please refer to the Usage
guide and the -register switch.

"


"..\..\..\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe" ^
-target:"C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe" ^
-targetargs:"/noisolation" "/testcontainer:D:\QED16\qedgameshow\QEDGameShow\QEDGameShow.Library.Test\bin\Debug\QEDGameShow.Library.Test.dll" ^
-filter:"+[QEDGameShow.Library]QEDGameShow.Library*" ^
-excludebyattribute:"System.CodeDom.Compiler.GeneratedCodeAttribute" ^
-register:user -output:"_CodeCoverageResult.xml"

"..\..\..\packages\ReportGenerator.2.1.8.0\tools\ReportGenerator.exe" ^
-reports:"_CodeCoverageResult.xml" ^
-targetdir:"_CodeCoverageReport" ^
-output:"_CodeCoverageReport.html"
pause
Posted
Updated 5-Aug-15 23:58pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900