0

I tried to generate code coverage xml file. but i failed

after adding the Nuget packages and enabled Nuget Package Restore on the solution. then open cmd and run this command .\packages\OpenCover.4.5.1604\OpenCover.Console.exe^ -register:user^ -target:MSTest.exe^ -targetargs:"/noresults /noisolation /testcontainer:..\releases\Latest\NET40\MonitoredUndoTests.dll"^ -filter:+[]^ -output:.\report\output.xml

but always generate an error

1 Answers1

1

You should try following link that worked for me. It says Gallio error but it is using OpenCover to run the coverage. I was using Gallio with Sonar and running OpenCover and using these steps fixed my issue.

Gallio error : MSTest executable was not found

Community
  • 1
  • 1
Adarsh Shah
  • 6,755
  • 2
  • 25
  • 39
  • but, i don't use sonar for this coverage, so do you expect it work without sonar – Osama Yaser Jan 17 '14 at 16:48
  • Please add me on skype to discuss it please if you can osama.yasser@outlook.com it's my skype account – Osama Yaser Jan 17 '14 at 17:05
  • I can't come on Skype... Did you try the steps mentioned in that answer? – Adarsh Shah Jan 17 '14 at 17:09
  • yes, after trying these steps. i try this command OpenCover.4.5.2316\OpenCover.Console.exe^ -register:user^ -target:"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe"^ -targetargs:"/noresults /noisolation /testcontainer:C:\src\FileBound\source\V6.Core.Web\bin\FileBoundV6.dll"^ -filter:+[*]*^ -output:C:\report\output.xml but i have no result it say no tests to execute you have any idea – Osama Yaser Jan 18 '14 at 00:04
  • Try looking at the output file overcover creates. you should see error message there. I think its an xml file. – Adarsh Shah Jan 18 '14 at 00:20