in reply to is perl testing the answer?

I use the Test::Harness module all the time in testing my C++ code. All it took was to write an extremely minimal C++ class to emulate the behavior of Test::More, then put appropriate targets in a Makefile to do the following things when I type make test:

Whether this is the best or easiest approach, I'm not sure. I came up with it on my own after much searching for freely-available unit testing code in C++. But if anyone can suggest such code, or a better way to go about testing C++ using the Perl Test:: modules, I would love your input.

-- Mike

--
just,my${.02}

Replies are listed 'Best First'.
Re^2: is perl testing the answer?
by adrianh (Chancellor) on Jun 03, 2003 at 20:10 UTC
    Whether this is the best or easiest approach, I'm not sure. I came up with it on my own after much searching for freely-available unit testing code in C++. But if anyone can suggest such code, or a better way to go about testing C++ using the Perl Test:: modules, I would love your input.

    If you want a C++ xUnit framework you might be interested in taking a look at CxxTest, unit++, CppUnitLite or CppUnit.

    While I've not used it myself I've heard good things about CppUnitLite.

    (not that there is anything wrong with using Perl ;-)