prosseek
prosseek

Reputation: 191189

What are the differences between Microsoft TestTools' UnitTesting and NUnit?

I use NUnit for Mono/C# on my Mac, but I need to use Microsoft.VisualStudio.TestTools.UnitTesting for unit testing.

Upvotes: 5

Views: 5647

Answers (4)

TrueWill
TrueWill

Reputation: 25573

See Migrating from NUnit to MSTest.

As to why you might try convincing your team to migrate the other way, see NUnit vs. MsTest: NUnit wins for Unit Testing.

Upvotes: 4

MSTest can be used without installing Visual Studio. You will need to install Visual Studio Test Agent, which is a free download from Microsoft: http://www.microsoft.com/download/en/details.aspx?id=1334.

I think this approach is better from a licensing perspective than manually copying MSTest.exe and its dependencies onto the build server.

Upvotes: 1

Barry Hurt
Barry Hurt

Reputation: 61

My biggest problem with MSTest is that it requires the install of Visual Studio, even if you are trying to run a lean build server.

NUnit can install and run anywhere.

Upvotes: -1

Preet Sangha
Preet Sangha

Reputation: 65555

Ask yourself - why do you need the Ms tools if you already have a working set with NUnit.

Personally I've worked with both and unless working in legacy where the MS tool was in great use, I'd choose NUnit for this toolset due to the larger community support I get in cases of problems.

Upvotes: 4

Related Questions