开发者

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.

  • Ho开发者_JAVA技巧w is Microsoft TestTools' UnitTesting different from NUnit? Can I just change the namespace and recompile to get the same result, or do I have to rewrite the test?
  • Can I copy some of the assemblies to my Mac to run tests for Microsoft.VisualStudio.TestTools.UnitTesting? If so, what files should be copied?


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.


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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜