What is the most popular/standard C++ unit testing library/framework.

This is a discussion on What is the most popular/standard C++ unit testing library/framework. within the Tech Board forums, part of the Community Boards category; I'm used to using mbunit with C# and am going back to working with C++ and want to apply some ...

  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901

    What is the most popular/standard C++ unit testing library/framework.

    I'm used to using mbunit with C# and am going back to working with C++ and want to apply some of the TDD practices I use with C# but haven't found a industry standard Testing Library and/or framework to use. Anyone know of one such library.
    Here to Deceive, Inveigle, Obfuscate Since 1945

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,236
    Quote Originally Posted by indigo0086 View Post
    I'm used to using mbunit with C# and am going back to working with C++ and want to apply some of the TDD practices I use with C# but haven't found a industry standard Testing Library and/or framework to use. Anyone know of one such library.
    Boost has a unit test framework. I don't think it requires that your project itself use Boost.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,456
    Quote Originally Posted by brewbuck
    Boost has a unit test framework. I don't think it requires that your project itself use Boost.
    Since it is a Boost library, to some extent it does require that projects using it use Boost, by definition

    Furthermore, it has dependencies on other Boost libraries. However, you can extract out just those parts of Boost that it depends on, but this is true of any Boost library.

    Besides Boost.Test, I have used UnitTest++, which I found easy to use.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    WHat about CppUnit
    Here to Deceive, Inveigle, Obfuscate Since 1945

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A Question About Unit Testing
    By Tonto in forum C++ Programming
    Replies: 2
    Last Post: 12-14-2006, 07:22 PM
  2. newbie here.. pls help me in this program!
    By rothj0hn in forum C Programming
    Replies: 2
    Last Post: 02-01-2006, 09:40 PM
  3. 2-d object avoidance. Help please! (basic stuff, I think)
    By charbach007 in forum Game Programming
    Replies: 4
    Last Post: 06-15-2004, 03:49 PM
  4. Unit Actions
    By DavidP in forum Game Programming
    Replies: 20
    Last Post: 05-28-2004, 09:18 PM
  5. Unit testing tools for .NET ?
    By gicio in forum C# Programming
    Replies: 0
    Last Post: 11-10-2003, 03:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21