[Insight-developers] SimpleITK - language specific test

Daniel Blezek Blezek.Daniel at mayo.edu
Thu Mar 31 08:59:36 EDT 2011


Sure.  Write the test in Python, the Examples directory is a good place to
put it.  Your script should take input and output images, with optional
arguments.  Edit the PythonTests.cxx file in Testing/Unit.  This constructs
a command line to call the correct Python and passes in test data.  Once
³RunExecutable² finishes, you need to check the output (for baseline or
hash).

-dan

On 3/30/11 1:06 PM, "Bradley Lowekamp" <blowekamp at mail.nih.gov> wrote:

> Dan,
> 
> I would like to write a test just for python. I am not sure how to do it with
> our current testing frame work. Can you provide some insight?
> 
> Thanks,
> Brad
> 
> ========================================================
> 
> Bradley Lowekamp 
> 
> Lockheed Martin Contractor for
> 
> Office of High Performance Computing and Communications
> 
> National Library of Medicine
> 
> blowekamp at mail.nih.gov
> 
> 
> 

-- 
Daniel Blezek, PhD
Medical Imaging Informatics Innovation Center

P 127 or (77) 8 8886
T 507 538 8886
E blezek.daniel at mayo.edu

Mayo Clinic
200 First St. S.W.
Harwick SL-44
Rochester, MN 55905
mayoclinic.org
"It is more complicated than you think." -- RFC 1925

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110331/d5ffff56/attachment.htm>


More information about the Insight-developers mailing list