[Mono-osx] Running NUnit

Peter Williams pdubya at gmail.com
Fri Nov 17 19:25:47 EST 2006


Hi All

I've been trying to use NUnit, and haven't had much luck.  Does  
anyone have a sample file + steps to build and execute?  Here's what  
I've tried.  I'm using the CSharpTest.cs test from the NUnit-2 source.


564 Peter-Williams-G5 ~/models/tools/sandbox/nunit test> mcs  
CSharpTest.cs -target:library -r:/Library/Frameworks/Mono.framework/ 
Versions/1.2/lib/mono/gac/nunit.framework/2.2.8.0__96d09a1eb7f44a77/ 
nunit.framework.dll
CSharpTest.cs(76,8): warning CS0219: The variable `result' is  
assigned but its value is never used
Compilation succeeded - 1 warning(s)

It compiles to a managed dll, with the one warning.  Feel like I  
shouldn't have to go digging in mono framework to tell mcs where the  
nunit framework is, but it doesn't compile either.

565 Peter-Williams-G5 ~/models/tools/sandbox/nunit test> nunit- 
console2 CSharpTest.dll
NUnit version 2.2.0
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.  
Vorontsov, Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.

OS Version: Unix 8.8.0.0    Mono Version: 2.0.50727.42



Tests run: 0, Failures: 0, Not run: 0, Time: 0.001088 seconds

Tests run: 0, Failures: 0, Not run: 0, Time: 0.001088 seconds

It is trying to do something, but doesn't seem to run any tests!

Any help is appreciated.  Sorry if this is OT.





More information about the Mono-osx mailing list