[CMake] Establishing TDD workflow

Bill Hoffman bill.hoffman at kitware.com
Sun Nov 30 11:57:57 EST 2008


Alexander Neundorf wrote:

> Usually you do:
> 
> 
> add_executable(ut TestUnittest.cpp stdafx.cpp SomeSuite.cpp
>                    SecondSuite.cpp) 
> target_link_libraries(ut UnitTest++.vsnet2008)
> 
> add_test(ut_test ut)
> 
> And then expect the developer to do a "make test" or "ctest" after building 
> the project. So there is some manual work involved.
> 

You may also be interested in www.cdash.org.

make test actually just runs ctest in the binary tree, so I am sure you 
could come up with some custom commands that depend on executables that 
run ctest -R nameOfTest if you wanted them to be run during every build.

-Bill


More information about the CMake mailing list