Unit test for c++

This is a discussion on Unit test for c++ within the C++ Programming forums, part of the General Programming Boards category; HI... Does anyone knows an unit test framework for c++? I wll use it on linux... Thx......

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    10

    Unit test for c++

    HI...

    Does anyone knows an unit test framework for c++? I wll use it on linux...

    Thx...

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,968
    Search the Web and try out a few until you find one that fits your requirements. At the moment, I default to UnitTest++.
    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

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    890

  4. #4
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,261
    I wrote my own, then after chatting with a colleague discovered that I had independently re-invented something almost exactly like some other unit test framework. Something Lite I think it was.
    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"

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    I like Boost.Test a lot. But I wouldn't recommend its use without also using Boost.Build as the build system.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Registered User
    Join Date
    Nov 2006
    Posts
    519
    I really fell in love with CxxTest User's Guide because it's extremely lightweight and in opposite to most other frameworks very less "overhead code" is required to create tests. It accomplishes this using perl for an own preprocessor-like system, so a perl installation is required. for windows I recommend ActivePerl

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 to XML file
    By ransdepm in forum Tech Board
    Replies: 9
    Last Post: 09-04-2007, 09:46 AM
  3. newbie here.. pls help me in this program!
    By rothj0hn in forum C Programming
    Replies: 2
    Last Post: 02-01-2006, 09:40 PM
  4. C++ Operator Overloading help
    By Bartosz in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 12:55 PM
  5. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 06:18 AM

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