C++ Unit Testing

Check it out, two software related posts in a row. I deserve a soda. Ahhhhh refreshing.

I've gotten the architecture of CouchDb implemented enough that I'm confident it won't be changing damatically. Up to this point, so much of the code has been churning I've been letting some things slip, like making sure the code is well organized and maintainable (I've just been putting most of the code into a single .cpp file, yikes!). I've already gotten that mostly taken care of, and now I need to replace my unmanagable heap of test code with a good unit test framework. Does anyone recommend any books or resources for unit testing in C++?

Wait I just found the article Exploring the C++ Unit Testing Framework Jungle which looks pretty informative. I've skipped to the end of the article and favors CxxTest. Now I must read the rest of the article (wow. it's long). In the meantime, any other suggestions are much appreciated.

Posted August 1, 2005 3:05 PM

Comments

Damien,

We're exploring using CxxTest for our Unit Tests in my current project at work. I have yet to dive on it yet, but what I've glanced at looks promising.

Keep me posted on what you discover, and I'll do the same....

kudla, August 1, 2005 8:48 PM

Will do Kudla.

Damien Katz, August 2, 2005 11:42 PM

I worked for a guy a while back who when I suggested we needed some more time in the project plan for testing, his response was: "Testing? Bah! That's what we have customers for!".

Needless to say, they weren't happy customers.

Brendon Upson, August 3, 2005 7:17 PM

Pls send a program in c++ to implement unit testing to my email address: iborayei@yahoo.com
Thanks.

Ayei Ibor, August 17, 2005 5:25 AM

Post a comment




Remember Me?

(you may use HTML tags for style)