How to build CppUnit with Eclipse

These instructions describe how to build CppUnit with Eclipse 3.1.1, CDT 3.0.1 under Windows XP using MinGW. AdamKiezun reports success with Eclipse 3.2.2 and CDT 3.1.2.20070215062.

The steps to build it with WinXP/Cygwin or under Linux should be very similar, although I haven't tested it. (See CppUnitOnLinux)

screenshot1.png

screenshot2.png

screenshot3.png

Configure a GUI test runner

Now that you've sucessfully set up CppUnit to run from the console, you may wish to build a GUI test runner. Follow these step by step instructions for building QtTestRunnerWithEclipse.

Parsing Errors with Eclipse

As of writing this (05 Feb 2007), there's no way to get Eclipse CDT to parse the output of CppUnit and display the failures in the "Problems" view. CppUnit supports a variety of outputs that Eclipse CDT can parse, but the parser is simply not applied to the output of a post-build process.

CppUnitWithEclipse (last edited 2008-02-26 06:29:55 by localhost)

SourceForge.net Logo