I am trying to use monocov to count the coverage of a unit test and have run into a problem, have had some exhausted google, but don't seem to have a corresponding answer.
I download and build monocs successfully, following these tips shown in this [question]: Unable to get monocons for compilation (Mac OS x 10.7.4)
Tried to use monocov along with nunit-console2, as indicated at http://www.mono-project.com/Code_Coverage
Here is my command:
$ MONO_OPTIONS="--profile=monocov:+/Users/myaccount/MyProject/MonoForm/MonoForm.Common.Generic/bin/Release" nunit-console2 /Users/myaccount/MyProject/MonoForm/MonoForm.Common.UnitTests/bin/Release/MonoForm.Common.UnitTests.dll
And I got the output as:
NUnit version 2.4.8 Copyright(C) 2002-2007 Charlie Poole. Copyright(C) 2002-2004 James W. Newkirk, Michael C.Two, Alexei A. Vorontsov. Copyright(C) 2000-2002 Philip Craig. All Rights Reserved. Runtime Environment - OS Version: Unix 11.4.0.0 CLR Version: 2.0.50727.1433 ( 2.10.9(tarball Mon May 7 20:25:51 EDT 2012) ) ...... Tests run: 6, Failures: 0, Not run: 0, Time: 0.052 seconds. $
I got TestResult.xml - this is the general output file nunit-console2, and as a result of the monoco there is no error message and the .cov file. Current stuck and did not understand what happened.
Not sure if any monk expert could shed any light here. Thanks!
source share