Re: NUnit runner for 2.4.7 on Linux/Mono

"Charlie Poole" <[email protected]> Mon, 7 Jul 2008 13:40:46 -0700
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <000801c8e071$bdc10910$6401a8c0@ferrari>
Hi Chris,

I run all the NUnit tests under Linux (Ubuntu) before releasing
using the Windows runner. It has some issues, but they seem to
be mostly cosmetic. Have you tried it?

The NUnit runners never look for references to any classes in
the NUnit framework. Instead, they use reflection to find references
to attributes with the expected name - like
"NUnit.Framework.TestFixtureAttribute".

NUnit doesn't expect to find the attribute defined in your test class,
but it does expect to find it used by you. If you point me to the
part of the code that gave you this impression, I can explain further.

I'd love to start a subproject to create a new runner for Linux - perhaps
using code from gnunit - but I need some volunteers. :-) Should we
start one?

Charlie

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf 
> Of Chris Wright
> Sent: Monday, July 07, 2008 6:24 AM
> To: [email protected]
> Subject: [Nunit-users] NUnit runner for 2.4.7 on Linux/Mono
> 
> Hi all,
> 
> Is there a useable GUI for running NUnit 2.4.7 tests under Linux?
> - gnunit2 is for 2.2.6 or so, and it's nontrivial to get it 
> to compile against the test runner for 2.4.7. It took me a 
> couple hours, but...
> - the test runner in 2.4.7 seems to be looking for a copy of 
> NUnit.Framework.TestFixtureAttribute in the assembly containing tests.
> This shouldn't usually happen, what with dynamic linking. 
> Maybe MS .NET does static linking in this case?
> - The NUnit test runner binaries that are distributed try to 
> use an encoding Windows-1252, which Mono doesn't support.
> 
> I've hacked together a reasonably poor GUI and command line 
> test runner that uses hard-coded strings rather than 
> hard-coded types to look for tests and test fixtures and so 
> forth, so it should be more future proof. However, it's ugly 
> and has pretty much no features besides running tests. Any takers?
> 
> --------------------------------------------------------------
> -----------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source 
> project, along with a healthy diet, reduces your potential 
> for chronic lameness and boredom. Vote Now at 
> http://www.sourceforge.net/community/cca08
> _______________________________________________
> Nunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nunit-users
> 



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08