473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Automated unit tester

Is there any good automated unit tests for C# like CPPUNIT
(http://sourceforge.net/projects/cppunit) for C++?
Nov 17 '05 #1
19 1353

"David Dvali" <da*********@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP10.phx.gbl...
Is there any good automated unit tests for C# like CPPUNIT
(http://sourceforge.net/projects/cppunit) for C++?


http://sourceforge.net/projects/nunit/

There are others, csUnit and mbUnit, atleast. Don't have URLs on hand
though.
Nov 17 '05 #2
Another useful tip is if you use NUnit, you'll be pleases when VS2005 comes
out in 3 months as it has an NUnit clone built in.

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton

"David Dvali" <da*********@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP10.phx.gbl...
Is there any good automated unit tests for C# like CPPUNIT
(http://sourceforge.net/projects/cppunit) for C++?

Nov 17 '05 #3
Tim Haughton wrote:
Another useful tip is if you use NUnit, you'll be pleases when VS2005 comes
out in 3 months as it has an NUnit clone built in.


ROFL. I think this is the funniest thing I've heard anybody say about
Team System :-)

Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog
Nov 17 '05 #4
I must know so I can repeat it ad nauseum.

"Oliver Sturm" <ol****@sturmnet.org> wrote in message
news:OY**************@TK2MSFTNGP10.phx.gbl...
ROFL. I think this is the funniest thing I've heard anybody say about
Team System :-)


The NUnit bit? Or the bit about MS releasing in 3 months? ;¬)

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton
Nov 17 '05 #5
Tim Haughton wrote:
The NUnit bit? Or the bit about MS releasing in 3 months? ;�)


The "NUnit clone" bit :-)
Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog
Nov 17 '05 #6
Where can I get NUnit and is it free?

"Tim Haughton" <ti*********@gmail.com> wrote in message
news:Ry**********************@fe05.news.easynews.c om...
Another useful tip is if you use NUnit, you'll be pleases when VS2005
comes
out in 3 months as it has an NUnit clone built in.

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton

"David Dvali" <da*********@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP10.phx.gbl...
Is there any good automated unit tests for C# like CPPUNIT
(http://sourceforge.net/projects/cppunit) for C++?


Nov 17 '05 #7
"David Dvali" <da*********@hotmail.com> wrote in message
news:eS**************@TK2MSFTNGP12.phx.gbl...
Where can I get NUnit and is it free?


Behold...

http://www.google.com/search?hl=en&q=nunit

And yes, it's free, and open source.

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton
Nov 17 '05 #8
Tim Haughton <ti*********@gmail.com> wrote:
Another useful tip is if you use NUnit, you'll be pleases when VS2005 comes
out in 3 months as it has an NUnit clone built in.


As far as I'm aware, that's only for Team System - i.e. the really
expensive edition. Apparently MS think that mere professionals don't
use unit tests :(

(Things may have changed, of course - and it would be nice if they did.
I can't see unit testing on the beta 2 of VS 2005 Professional Edition
though.)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #9

"Oliver Sturm" <ol****@sturmnet.org> wrote in message
news:eU**************@tk2msftngp13.phx.gbl...
Tim Haughton wrote:
The NUnit bit? Or the bit about MS releasing in 3 months? ;�)


The "NUnit clone" bit :-)


why not go whole hog and just say it includes a clone of NUnit which in
itself is a clone of JUnit.

Its not like NUnit was a brilliant individual accomplishment.
Nov 17 '05 #10
Daniel,
Wasn't the original xUnit implemented in SmallTalk?

Kent Beck's book "Test-Driven Development" has an implementation in Python.

I don't consider the Unit Test feature of Team System an NUnit clone as much
as yet another implementation of a TDD platform. Don't get me wrong I do
like the Unit Test feature of Team System....

I do like the leveraging of Generics in the Unit Test feature of Team
System.

Jay

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
|
| "Oliver Sturm" <ol****@sturmnet.org> wrote in message
| news:eU**************@tk2msftngp13.phx.gbl...
| > Tim Haughton wrote:
| >
| >> The NUnit bit? Or the bit about MS releasing in 3 months? ;�)
| >
| > The "NUnit clone" bit :-)
|
| why not go whole hog and just say it includes a clone of NUnit which in
| itself is a clone of JUnit.
|
| Its not like NUnit was a brilliant individual accomplishment.
|
|
Nov 17 '05 #11

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:uX**************@TK2MSFTNGP14.phx.gbl...
Daniel,
Wasn't the original xUnit implemented in SmallTalk?

I'm not sure off hand, actualy, but still the silliness remains: calling
something a clone of something that is a clone of something that is probably
a clone of something.
I don't consider the Unit Test feature of Team System an NUnit clone as
much
as yet another implementation of a TDD platform. Don't get me wrong I do
like the Unit Test feature of Team System....


Neither do I, honestly. I like Team System's approach a bit better. Better
integration, mostly, but some of the features it offers were nice.
Nov 17 '05 #12
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
As far as I'm aware, that's only for Team System - i.e. the really
expensive edition. Apparently MS think that mere professionals don't
use unit tests :(


OK now your confusing me. I was convinced I had not installed Team System,
I'll have to check when I get back to base.

MS also think that only architects use UML too.

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton
Nov 17 '05 #13
Daniel O'Connell [C# MVP] wrote:
why not go whole hog and just say it includes a clone of NUnit which in
itself is a clone of JUnit.

Its not like NUnit was a brilliant individual accomplishment.


The thing I was laughing about was merely that I'm sure Microsoft won't
like anybody calling an important part of their flagship product for
developers a clone of something.

And personally, I wouldn't call an implementation of a concept in
another language a clone - at least not in the negative sense that the
word somehow implies. Sure, NUnit may not have been a brilliant
individual accomplishment, but it was necessary work done well (at least
in v2) on the .NET platform.
Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog
Nov 17 '05 #14
"Oliver Sturm" <ol****@sturmnet.org> wrote in message
news:uC**************@TK2MSFTNGP09.phx.gbl...
The thing I was laughing about was merely that I'm sure Microsoft won't
like anybody calling an important part of their flagship product for
developers a clone of something.


Normally I think you'd be right. But in this case, Microsoft *want* it to be
seen as an NUnit clone to speed people's transition from NUnit. And I've
been told by more than one person at MS that this is so.

I know that Jim Newkirk was working on a conversion tool, wonder if that's
done yet.

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton
Nov 17 '05 #15
You'll find a beginners tutorial on Test-driven Development using NUnit
at http://www.parlezuml.com/tutorials/agiledotnet.htm

Nov 17 '05 #16
Tim Haughton wrote:
Normally I think you'd be right. But in this case, Microsoft *want* it to be
seen as an NUnit clone to speed people's transition from NUnit. And I've
been told by more than one person at MS that this is so.
Okay, I believe you ;-) Still, "clone" has that funny sound to it: it
says that the clone is a copy, nothing more and nothing less than the
source, right? I don't think it's going to be long until MS starts
telling us that their implementation has bells and whistles that are not
in NUnit - so it's not a clone, after all, and I'm sure they'll find
that distinction important.
I know that Jim Newkirk was working on a conversion tool, wonder if that's
done yet.


I've read about that, but I haven't had a look.

Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog
Nov 17 '05 #17
"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
why not go whole hog and just say it includes a clone of NUnit which in
itself is a clone of JUnit.
NUnit v1 was a JUnit clone. v2 moved beyond JUnit. But that's like saying
that C# is 75% Java, 10% C++ and 15% VB. But wait, Java is 50% C++, and C++
is 35% C. Everything can be reduced to intrinsics, would it have added
anything to the thread? (note - I made these figures up). My calling it an
NUnit clone wasn't in any way intended as a criticism.

Its not like NUnit was a brilliant individual accomplishment.


NUnit was a good community accomplishment. Good software developers writing
good software for developers.

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton
Nov 17 '05 #18
ja*********@blueyonder.co.uk wrote:
You'll find a beginners tutorial on Test-driven Development using NUnit
at http://www.parlezuml.com/tutorials/agiledotnet.htm


That's nice, but I really don't see why you think that's what I want :-)
I've been using NUnit in my projects for a long time.
Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog
Nov 17 '05 #19

"Tim Haughton" <ti*********@gmail.com> wrote in message
news:pa*********************@fe03.news.easynews.co m...
"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
why not go whole hog and just say it includes a clone of NUnit which in
itself is a clone of JUnit.


NUnit v1 was a JUnit clone. v2 moved beyond JUnit. But that's like saying
that C# is 75% Java, 10% C++ and 15% VB. But wait, Java is 50% C++, and
C++
is 35% C. Everything can be reduced to intrinsics, would it have added
anything to the thread? (note - I made these figures up). My calling it an
NUnit clone wasn't in any way intended as a criticism.


Hench why I never responded to you, but the poster who made a point about it
being funny. I'm not sure how it was humorous, considering calling it a
clone is pretty inaccurate to begin with, and calling it a clone of a clone
that was a clone of another clone would have been funny, but calling it a
clone on its own..nah. At best that comes off as is a neutral comment, at
worst a jab.
Its not like NUnit was a brilliant individual accomplishment.


NUnit was a good community accomplishment. Good software developers
writing
good software for developers.


Yes it was, although there were some disappointing things about it. I don't
put NUnit in the "Great" pile that some stuff goes into, merely passable.
Nov 17 '05 #20

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

Similar topics

2
by: Michele Simionato | last post by:
Some time ago I hacked a custom solution to run doctests on text files containing documentation. The solution involved this kind of game: tester=doctest.Tester(globs={},verbose=1)...
2
by: Curtis Justus | last post by:
Hi, I've been searching for solutions to two issues that are undoubtedly common to everybody. The first is how do my team and I adequately perform unit testing. The second is how can I measure...
1
by: E.T. Grey | last post by:
Hi, I have several modules comprising of shared libs (i.e. dlls) and executables. I would like to be able to do the ff: 1). Build each of the modules individually from the command line...
7
by: Andrew Ducker | last post by:
I'm writing some unit tests, to make sure that my windows forms code works properly after refactoring, and I've bumped into a problem - Messagebox.show. There are a couple of places where my...
176
by: nw | last post by:
Hi, I previously asked for suggestions on teaching testing in C++. Based on some of the replies I received I decided that best way to proceed would be to teach the students how they might write...
2
by: napstar | last post by:
I have a C# program that returns an empty collection and a Unit test that test to see if the name of an element in the empty returned collection is the same as an object I have.I'm asserting that...
0
by: Jordan S. | last post by:
Okay so I've finally "seen the Light" about writing automated unit tests ahead of time. Question: What is a very simple approach that I can use to setting up automated unit tests, considering...
10
by: Brendan Miller | last post by:
What would heavy python unit testers say is the best framework? I've seen a few mentions that maybe the built in unittest framework isn't that great. I've heard a couple of good things about...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.