Unable to get coverage data on mbunit/gallio tests
Unable to get coverage data on mbunit/gallio tests
This is a little maddening. I've fought with this off and on for a couple of days now. This is my first time using NCover for anything.
I want to check unit test coverage of some MbUnit tests.
What happens is that NCover keeps outputting a coverage file that contains next to no information in it. Other than that, everything appears to work correctly. Tantalizingly, this worked EXACTLY ONCE, after I did a fresh install, and has never worked since.
Any help getting this to work would be greatly appreciated.
My setup:
Windows 7 (64-bit) NCover (64-bit) Gallio.Echo.Exe (v3.2 build 517)
Gallio.Echo.Exe is "any cpu", and so are all my test assemblies. So I'm using the C:\Program Files\NCover\NCover.Console.exe.
This is the output, copied and pasted from NCover explorer:
[NCover Explorer]: Using the NCover executable in 'C:\Program Files\NCover\NCover.Console.exe' NCover Complete v3.4.12.6869 x64 Copyright (c) 2007 - 2010 Gnoso Inc. License Key: xxxxxxx Registered to Customer #: xxxxx for 1 Machine Command: C:\Program Files\Gallio\bin\Gallio.Echo.exe Command Args: "C:\Projects\Vge.Core\Vge.Core.Test\bin\Debug\Vge.Core.Test.dll" Working Directory: C:\Projects\Vge.Core Assemblies: (All Loaded Assemblies) ******************* Program Output ******************* Process 'Gallio.Echo' [PID 19532] has begun profiling. Gallio Echo - Version 3.2 build 517 Get the latest version at http://www.gallio.org/ Start time: 4:39 PM Initializing the runtime and loading plugins. Verifying test files. Initializing the test runner. Running the tests. Disposing the test runner. Stop time: 4:40 PM (Total execution time: 8.020 seconds) 109 run, 109 passed, 0 failed, 0 inconclusive, 0 skipped Process 'Gallio.Echo' [PID 19532] has finished profiling. ***************** End Program Output ***************** Execution Time: 15.4458 s Coverage File: C:\Projects\Vge.Core\coverage.nccov Trend File: C:\Projects\Vge.Core\coverage.trend
And this is the contents of coverage.nccov:
http://www.agentpower.net/coverage.nccov.txt
(I couldn't get it to look decent here in the forum)
RE: Unable to get coverage data on mbunit/gallio tests
Okay, the magic answer seems to be to click Project Actions -> Project Options -> Output Options and adding "gallio.host.exe" to the "Process Names" option.
RE: Unable to get coverage data on mbunit/gallio tests
You've got it, bslatner! Please let us know if you have any other questions: support@ncover.com