Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# / Mono unit tests on Mac OS X

I'm trying to migrate my C# development process from Windows / Visual Studio 2010 to Mac OS X / Monodevelop. And I am wondering if is there any good unit testing framework that will fit my needs?

It would be nice if it will work on Windows / Mac / Ubuntu in the same time.

I've checked obvious options as NUnit and MSTest but the first has executable for Windows only (or I haven't found Mac version yet) and the second is tightly integrated with Studio, with no such application for Mac either.

What should I do?

like image 223
shytikov Avatar asked Dec 03 '11 09:12

shytikov


2 Answers

NUnit support is built into MonoDevelop along with an integrated runner. I've never tried development and test in VS and Mono against the same solution or project, could be tricky depending on the project type.

I would expect the tests to continue running subject to the NUnit feature(s) being available across both platforms. Syntactically they are of course the same [TestFixture] [Test] etc

like image 81
Darren Lewis Avatar answered Sep 19 '22 17:09

Darren Lewis


Mono ships nunit already prepackaged on OSX, so the easy way is to use that.

like image 25
lupus Avatar answered Sep 18 '22 17:09

lupus