Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NUnit vs Team System Unit Test

Which do you prefer?

What are the advantages and disadvantages of each for Unit Testing?

EDIT: I will admit that Team System offers a lot more than just Unit Testing, such as performance and load testing of applications and databases. This question was centering around writing unit tests and which do you prefer.

like image 287
eduncan911 Avatar asked Apr 01 '09 21:04

eduncan911


People also ask

Should I use MSTest or NUnit?

The main difference is the ability of MsTest to execute in parallel at the method level. Also, the tight integration of MsTest with Visual Studio provides advantages in both speed and robustness when compared to NUnit. As a result, I recommend MsTest.

What is difference between NUnit and Unittest?

NUnit is an older, more established unit testing framework designed to do exactly one thing - unit testing. MSTest is newer so it does not have the same level of maturity in its API. For example, NUnit offers more Assert methods than MSTest.

Why xUnit is preferred more than NUnit or MSTest?

XUnit vs. MSTest is concerned, the biggest difference between xUnit and the other two test frameworks (NUnit and MSTest) is that xUnit is much more extensible when compared to NUnit and MSTest. The [Fact] attribute is used instead of the [Test] attribute.

What is difference between NUnit and TestNG?

Differences between JUnit and TestNG :JUnit is an open-source framework used to trigger and write tests. TestNG is a Java-based framework that is an upgraded option for running tests. JUnit does not support to run parallel tests. TestNG can run parallel tests.


1 Answers

Nunit:

Advantages:

  • Free
  • Very similar to team system in attributs and methods for assertion, some names are even the same

Disadvantages:

  • Tests must be run via console or external application ( this can be seen as an advantage, but not from my point of view).

Team System testing

Advantages:

  • A part of VS, you can run tests in a test window.
  • If you run a team system server you can run tests more easily as a part of the automated build

Disadvantages:

  • Expensive
  • Still isn't as stable as NUnit

A comparison between team system and Nunit

We use team system 2008 as we are gold certified partners to microsoft, but earlier used Nunit due to bug related issues in VS 2005. I prefer the VS solution.

Both are good solutions for your work, look also out for other free solutions like:

Good alternatives to Team System

like image 58
Mikelangelo Avatar answered Oct 05 '22 12:10

Mikelangelo