Unit Test Framework for c++ program

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sylcheung@gmail.com

    #1

    Unit Test Framework for c++ program

    Hi,

    Does anyone has any suggestion for Unit Test Framework for c++ program?

    Is there any framework which let me use some script languages (e.g.
    python) to write the test cases to test c++ program?

    Thanks in advance.

  • Mark P

    #2
    Re: Unit Test Framework for c++ program

    sylcheung@gmail .com wrote:[color=blue]
    > Hi,
    >
    > Does anyone has any suggestion for Unit Test Framework for c++ program?
    >
    > Is there any framework which let me use some script languages (e.g.
    > python) to write the test cases to test c++ program?
    >
    > Thanks in advance.
    >[/color]

    perhaps, www.swig.org
    or google cppunit

    Comment

    • Fabio Fracassi

      #3
      Re: Unit Test Framework for c++ program

      sylcheung@gmail .com wrote:
      [color=blue]
      > Hi,
      >
      > Does anyone has any suggestion for Unit Test Framework for c++ program?
      >
      > Is there any framework which let me use some script languages (e.g.
      > python) to write the test cases to test c++ program?
      >
      > Thanks in advance.[/color]

      Don't know about how they connect with scripting languages, but you can get
      unit testing from
      Boost ( "Boost Test", http://boost.org/libs/test/doc/)
      and Trolltech's Qt contains basic unit testing in their 4.x releases.
      (http://doc.trolltech.com/solutions/4...ib-manual.html)

      HTH

      Fabio

      Comment

      • dc

        #4
        Re: Unit Test Framework for c++ program

        I would recommend to use C++ to test C++. And the best freely available
        framework is CPPunit.
        http://sourceforge.net/projects/cppunit

        Other simple frameworks r available too.. like cxxtest, cutee...

        Comment

        • Ben Pope

          #5
          Re: Unit Test Framework for c++ program

          sylcheung@gmail .com wrote:[color=blue]
          > Hi,
          >
          > Does anyone has any suggestion for Unit Test Framework for c++ program?[/color]

          Boost.Test.
          [color=blue]
          > Is there any framework which let me use some script languages (e.g.
          > python) to write the test cases to test c++ program?[/color]

          Boost.Python.

          Gotta love Boost. Enjoy.

          Ben Pope
          --
          I'm not just a number. To many, I'm known as a string...

          Comment

          Working...