473,734 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NUNIT vs VSTS ?? Which is better ?

Hi,
I am trying to figure out best testing tool for my project. I have
narrowed down my requirements to two tools NUNIT and VSTS unit. But I have
used neither and I have to use only one of them. Hence can someone who has
used them before share his/her experience on them so that I can get a better
idea and make a proper choice ?
Any link or suggestions are also welcome.

Thanks and Regards,
Parag
MTS,Persistent Systems Private Limited
Mar 7 '06 #1
20 1541
They both really do the same thing. Here are the reasons that I would
choose NUnit over MSs version.

1) Unit testing in VS can only be done through a high-end version of the
product. If all your developers do not use the team version, then they will
not be able to use the MS testing framework.
2) NUnit has been around for years with a proven track records.
3) NUnit if available for many versions of the framework and also Mono (I
think).
4) NUnit does not couple the testing to just an MS environment.
5) External tools may work better with NUnit such as build systems.
"Parag" <pa************ @persistent.co. in> wrote in message
news:uc******** ******@TK2MSFTN GP10.phx.gbl...
Hi,
I am trying to figure out best testing tool for my project. I have
narrowed down my requirements to two tools NUNIT and VSTS unit. But I have
used neither and I have to use only one of them. Hence can someone who has
used them before share his/her experience on them so that I can get a
better idea and make a proper choice ?
Any link or suggestions are also welcome.

Thanks and Regards,
Parag
MTS,Persistent Systems Private Limited

Mar 7 '06 #2
I have used both. nunit is nice, but VS test is suit. I use it in the VSDev
version.

--
William Stacey [MVP]

"Parag" <pa************ @persistent.co. in> wrote in message
news:uc******** ******@TK2MSFTN GP10.phx.gbl...
| Hi,
| I am trying to figure out best testing tool for my project. I have
| narrowed down my requirements to two tools NUNIT and VSTS unit. But I have
| used neither and I have to use only one of them. Hence can someone who has
| used them before share his/her experience on them so that I can get a
better
| idea and make a proper choice ?
| Any link or suggestions are also welcome.
|
| Thanks and Regards,
| Parag
| MTS,Persistent Systems Private Limited
|
|
Mar 7 '06 #3
They are pretty equivalent. The VSTS tags are a bit closer to the Attributes
throughout the framework, which is nice. If you are using Team System, I
would go ahead and use VSTS. If not, nUnit is a fine alternative. I use both,
depending on the project location.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************
"Parag" wrote:
Hi,
I am trying to figure out best testing tool for my project. I have
narrowed down my requirements to two tools NUNIT and VSTS unit. But I have
used neither and I have to use only one of them. Hence can someone who has
used them before share his/her experience on them so that I can get a better
idea and make a proper choice ?
Any link or suggestions are also welcome.

Thanks and Regards,
Parag
MTS,Persistent Systems Private Limited

Mar 7 '06 #4
There are two things that I really like more about VS. Better overall
integration with VS. And you can right-click a method and gen the test stub
automatically. You also get code coverage results with integration to show
what lines where not covered. Not sure what nunit offers today in that
regard.

--
William Stacey [MVP]

"Cowboy (Gregory A. Beamer) - MVP" <No************ @comcast.netNoS pamM> wrote
in message news:AF******** *************** ***********@mic rosoft.com...
| They are pretty equivalent. The VSTS tags are a bit closer to the
Attributes
| throughout the framework, which is nice. If you are using Team System, I
| would go ahead and use VSTS. If not, nUnit is a fine alternative. I use
both,
| depending on the project location.
|
| --
| Gregory A. Beamer
| MVP; MCP: +I, SE, SD, DBA
|
| *************** ************
| Think Outside the Box!
| *************** ************
|
|
| "Parag" wrote:
|
| > Hi,
| > I am trying to figure out best testing tool for my project. I have
| > narrowed down my requirements to two tools NUNIT and VSTS unit. But I
have
| > used neither and I have to use only one of them. Hence can someone who
has
| > used them before share his/her experience on them so that I can get a
better
| > idea and make a proper choice ?
| > Any link or suggestions are also welcome.
| >
| > Thanks and Regards,
| > Parag
| > MTS,Persistent Systems Private Limited
| >
| >
| >
Mar 7 '06 #5
While NUnit doesnt offer strong vstudio integration, or coverage there
are a number of 3rd party tools that do this integration .... I
personally prefer TestRunner.

That being said, I really believe that the market positioning of VSTS by
MS puts it out of reach for most independent developers and small
development shops. That being said, IMHO, I personally see NUnit as the
best option.


William Stacey [MVP] wrote:
There are two things that I really like more about VS. Better overall
integration with VS. And you can right-click a method and gen the test stub
automatically. You also get code coverage results with integration to show
what lines where not covered. Not sure what nunit offers today in that
regard.

Mar 7 '06 #6
William Stacey [MVP] <wi************ @gmail.com> wrote:
There are two things that I really like more about VS. Better overall
integration with VS. And you can right-click a method and gen the test stub
automatically.
Does it assume a "one test method per concrete method" model though?
That's what Eclipse assumes when you ask it to generate a test skeleton
- and it's almost never what I actually want. (I just start with a bare
test class.)

It's also not useful for true TDD, where the tests come before the code
they're calling.
You also get code coverage results with integration to show
what lines where not covered. Not sure what nunit offers today in that
regard.


You can run NUnit over NCover. I haven't used it much myself, but I've
done enough to know it works.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Mar 7 '06 #7
| That being said, I really believe that the market positioning of VSTS by
| MS puts it out of reach for most independent developers and small
| development shops. That being said, IMHO, I personally see NUnit as the
| best option.

Remember you don't need VSTS to use it. You need at lease VSDev IIRC. I
have VSDev with the MSDN. Am I wrong?

I thought same about NUnit before I really used VS. One day I *forced
myself to use VS for good sized library. I would not go back now.
Different strokes. Code coverage is big.

--
William Stacey [MVP]

Mar 7 '06 #8
| Does it assume a "one test method per concrete method" model though?
| That's what Eclipse assumes when you ask it to generate a test skeleton
| - and it's almost never what I actually want. (I just start with a bare
| test class.)

Not 100% sure what you mean. By default, if you just have a new class, it
will stub out (pretty nice) each method (w/ overload), constructor and
properties IIRC. And even the private methods if desired. You can then add
any amount of new test methods, delete or change existing ones. You can do
any amount of tests (high, low, range, expected exceptions, etc) inside one
method or break them out as you want. Get nice coverage results, see what
failed. Click on failed tests to jump to that code. Click on uncovered
results to jump to that method and see the uncovered lines in color, etc.
Lot more going on here then just red and green traffic lights.

| It's also not useful for true TDD, where the tests come before the code
| they're calling.

They encourage and support either. Possibly the easiest way is to stub out
your class with exception in the body, then gen your tests over the class.
Then just keep adding code to your class as you go and iterating your tests.
You could also just stub out your tests without any class first, but not
sure how valuable that would be. Its all just code, so you can do what you
want.

| > You also get code coverage results with integration to show
| > what lines where not covered. Not sure what nunit offers today in that
| > regard.
|
| You can run NUnit over NCover. I haven't used it much myself, but I've
| done enough to know it works.

Have nothing against NUnit. I can only suggest trying the test and code
coverage in VS (if you got the MSDN w/ VSDev). I think you will be very
happy with the whole solution.

--
William Stacey [MVP]

Mar 7 '06 #9
code coverage is available when you use TestRunner and NUnit as well
..... at a fraction of the cost
William Stacey [MVP] wrote:
| That being said, I really believe that the market positioning of VSTS by
| MS puts it out of reach for most independent developers and small
| development shops. That being said, IMHO, I personally see NUnit as the
| best option.

Remember you don't need VSTS to use it. You need at lease VSDev IIRC. I
have VSDev with the MSDN. Am I wrong?

I thought same about NUnit before I really used VS. One day I *forced
myself to use VS for good sized library. I would not go back now.
Different strokes. Code coverage is big.

Mar 7 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
2020
by: Parag | last post by:
Hi, I am trying to figure out best testing tool for my project. I have narrowed down my requirements to two tools NUNIT and VSTS unit. But I have used neither and I have to use only one of them. Hence can someone who has used them before share his/her experience on them so that I can get a better idea and make a proper choice ? Any link or suggestions are also welcome. Thanks and Regards, Parag
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.