[CMake] CxxTest failure out running unit tests

Tron Thomas tron.thomas at verizon.net
Sat Dec 6 21:00:28 EST 2008


I know that if I type ctest -V from the command line, I can get output 
that include the CxxTest information.  I'm not sure what I'm supposed to 
do in my CMakeLists.txt files that will cause the same behaviour when I 
build the target that runs the unit tests.

Philip Lowman wrote:
> On Sat, Dec 6, 2008 at 7:22 PM, Tron Thomas <tron.thomas at verizon.net 
> <mailto:tron.thomas at verizon.net>> wrote:
>
>     I am creating a CMake configured project that uses the CxxTest
>     unit testing framework for testing various components.
>
>     When I build the test target that runs the test, and there are
>     failures, CTest will report that the test fail, and it doesn't
>     provide the details about what the failures were.
>
>     How can I configure my test target so that it will produce the
>     output from CxxTest that explains why certain tests failed?
>
>
> Use the "-V" flag (verbosity) to see the output of a failed test.  You 
> can also use this in conjunction with the other flags to limit the 
> tests preformed (see "-E" for example).
>
> Also, if you haven't found it already, this may be of interest:
> http://public.kitware.com/Bug/view.php?id=6401
>  
> -- 
> Philip Lowman



More information about the CMake mailing list