[Insight-users] Unit Testing

Dan Mueller d.mueller at qut.edu.au
Tue May 15 20:00:25 EDT 2007


Hi Matt,

I'm not an expert regarding the testing system used by ITK, but 
hopefully I can at least help point you in the right direction.

ITK uses CMake to generate tests covering different aspects of the code, 
including: unit tests, blackbox tests, and regression tests. Have a 
browse of Testing/Code/BasicFilters/CMakeLists.txt to see examples of 
how to use CMake to add unit and regression tests. The CMake 
documentation may also be useful: 
http://www.cmake.org/HTML/Documentation.html (particularly the ADD_TEST 
command). Obviously you can use the CMake ADD_TEST command in your own 
projects as well.

Maybe check out the following pages:
    http://www.itk.org/Wiki/Itk_FAQ#Testing
    http://www.itk.org/HTML/Testing.htm

HTH

Cheers, Dan

Matt Kelsey wrote:
> Does anyone know of a document or tutorial that details the ITK
> testing structure.  Does it support something in the way of Unit
> Tests?  I'd like to have a structured way of testing all of my modules
> and would be happy to use a built in feature if it's there.
>
> Thanks for any thoughts.
>
> Matt
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070516/bdb4f88e/attachment.html


More information about the Insight-users mailing list