At OSCON, I spoke about NUnit for Cross-Platform development. Here are some screenshots from that talk, showing NUnit running under Mono 1.1.13 on Ubuntu Linux. (Click to enlarge)
Here's the NUnit Gui running under Linux. There are some bugs, but it basically works. This is the NUnit 2.4 Beta, the same code we run on Windows!
This shot shows the NUnit add-in for MonoDevelop running some tests. Unfortunately, it's still using NUnit 2.0.
Here we're actually building NUnit under MonoDevelop. We can't yet build the Gui due to some resource generation bugs, but the framework and console apps build just fine.
Since we can't yet build the gui under Linux, we got it to run there by copying it from Windows. Here's how you can do it yourself...
Copy the contents of your NUnit bin directory to a directory on the Linux system. Depending on your setup, you can use a network connection or some portable medium like a USB key. The standard location for most systems will be a directory under /usr/lib. Don't overwrite any existing nunit directory, since it is most likely being used by an application like MonoDevelop. On my system, I copied the files to /usr/lib/nunit-2.4.
Create a script on your path somewhere to execute the gui. I called mine nunit and placed it in /usr/bin, which is a location used for similar scripts for other programs that run under mono. The script should look something like this
#!/usr/bin/sh
exec /usr/bin/mono /usr/lib/nunit-2.4/nunit.exe "$@"
If you don't have Linux, get a copy of the MonoLive CD created by Joseph Hill. If you have VMWare, he also provides a ready-to-use machine image on the same site. [Note: the monolive user password is monolive. You need this to perform operations with sudo.]
Comments
Charlie Poole @ OSCON
Charlie Poole has just returned from OSCON and seems to be on a bit of a roll. He writes:NUnit on LinuxRunning
TestDriven.NET by Jamie Cansdale, Sunday, July 30, 2006
Charlie Poole @ OSCON
Charlie Poole has just returned from OSCON and seems to be on a bit of a roll. He writes:NUnit on LinuxRunning
M2, Sunday, July 30, 2006