<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Helvetica, Arial, sans-serif">Hi Matt,<br>
<br>
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.<br>
<br>
ITK uses CMake to generate tests covering different aspects of the
code, including: unit tests, blackbox tests, and regression tests. Have
a browse of <font face="Courier New, Courier, monospace">Testing/Code/BasicFilters/CMakeLists.txt</font>
to see examples of how to use CMake to add unit and regression tests.
The CMake documentation may also be useful:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a> (particularly the <font
 face="Courier New, Courier, monospace">ADD_TEST</font> command).</font><font
 face="Helvetica, Arial, sans-serif"> Obviously you can use the CMake <font
 face="Courier New, Courier, monospace">ADD_TEST</font> command in your
own projects as well.<br>
</font><font face="Helvetica, Arial, sans-serif"><br>
Maybe check out the following pages:<br>
&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/Itk_FAQ#Testing">http://www.itk.org/Wiki/Itk_FAQ#Testing</a><br>
&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="http://www.itk.org/HTML/Testing.htm">http://www.itk.org/HTML/Testing.htm</a><br>
<br>
</font></small><small><font face="Helvetica, Arial, sans-serif">HTH</font></small><br>
<small><font face="Helvetica, Arial, sans-serif"><br>
Cheers, Dan<br>
<br>
Matt Kelsey wrote:</font></small>
<blockquote
 cite="mida4ae92f30705151202y7f3b625o9e87abd2b60fcd9b@mail.gmail.com"
 type="cite"><small><font face="Helvetica, Arial, sans-serif">Does
anyone know of a document or tutorial that details the ITK
  <br>
testing structure.&nbsp; Does it support something in the way of Unit
  <br>
Tests?&nbsp; I'd like to have a structured way of testing all of my modules
  <br>
and would be happy to use a built in feature if it's there.
  <br>
  <br>
Thanks for any thoughts.
  <br>
  <br>
Matt
  <br>
_______________________________________________
  <br>
Insight-users mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>
  <br>
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
  <br>
  </font>
  </small></blockquote>
</body>
</html>