Click to See Complete Forum and Search --> : Unit Testing (NUnit, CppUnit etc...)


ahammad
May 30th, 2007, 10:36 AM
Hello,

I have a few C++ console applications and I want to perform some unit testing on them. I was told to use NUnit for testing, but according to all the documentation that I found it is mostly used for .Net.

Also, the only form of unit testing that I've ever done was manual testing. I never used a software for that. The thing with the tutorials on NUnit, they assume you know many things which I don't. I am very good at coding, but I have trouble with setting up the project or whatever. All my programs have been created as Win32 Console projects.

Can someone give me some direction as to where I start? I read the online documentation but like I said, it doesn't start from the very beginning.

Also, I tried downloading CppUnit because it seems to be usable for C++, but the file has a .gz format. What is that?

ahammad
June 7th, 2007, 10:25 AM
I guess this sub-forum isn't really popular...

kempofighter
June 27th, 2007, 01:36 PM
Hello,

Also, I tried downloading CppUnit because it seems to be usable for C++, but the file has a .gz format. What is that?

Hopefully you performed a google search by now and found something like this:

http://www.ncbi.nlm.nih.gov/Ftp/uncompress.html

It's just a kind of a compressed file and so you just have to have the right tools for unpacking the data.

grahamr (work)
June 9th, 2008, 03:56 AM
I use UnitTest++ (look on SourceForge for it) and it is very good.

While it officially only supports 2002 onwards I managed (as I found several other had already) massaged it to support VC6.

G.