Thread: recommended unit test frameworks?

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    69

    recommended unit test frameworks?

    I'm looking for a good (open source preferred) unit test framework that I can use for some project work that I'm about to embark on. Any preferences/recommendations?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    A quick search of the Web brings up Check and CUnit.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    17

    Want to know the how to intigrate CUNIT to my project

    Quote Originally Posted by laserlight View Post
    A quick search of the Web brings up Check and CUnit.
    Hi ALl,
    Even i wanted to use CUnit for my unit testing.
    I am not able to understand the user guide provided by CUNIT people.
    can anybody help steps how to intigrate the my project to CUNIT library?

    Thanks lot for your help.

    Regards,
    Siddu

  4. #4
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    Consider this post signed

  5. #5
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    I doubt that will help. Assert is also a very good tool, but it will be difficult to impossible to unit test with assert unless you hard-code your tests there.

  6. #6
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    EZunit.

  7. #7
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    Here's a few to choose from:
    List of unit testing frameworks - Wikipedia, the free encyclopedia
    I actually wrote my own. Later I found out that it wasn't too different from CppUnitLite.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating C/C++ Unit Test Cases
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 04-28-2009, 08:29 PM
  2. Unit test for c++
    By rluceac in forum C++ Programming
    Replies: 5
    Last Post: 04-16-2009, 02:24 AM
  3. Unit test to XML file
    By ransdepm in forum Tech Board
    Replies: 9
    Last Post: 09-04-2007, 09:46 AM
  4. newbie here.. pls help me in this program!
    By rothj0hn in forum C Programming
    Replies: 2
    Last Post: 02-01-2006, 10:40 PM
  5. C++ Operator Overloading help
    By Bartosz in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 12:55 PM