2009 Winter Project Week Command Line Program Testing

From NAMIC Wiki
Revision as of 16:37, 22 December 2008 by Lorensen (talk | contribs)
Jump to: navigation, search
Home < 2009 Winter Project Week Command Line Program Testing



Key Investigators

  • Bill Lorensen (His Basement)

Objective

There is NA-MIC funded infrastructure in place to regression test the command line programs found in Applications/CLI. Surprisingly, of the over 50 command line programs in the current Slicer3 distribution, only 11 have tests. This project will illustrate the importance of testing and show how easy it is to create tests for command line programs using the existing infrastructure. The project will document the process, create tests and help others to create tests.

Approach, Plan

Using the existing infrastructure, the project will create regression tests for many of the existing command line programs in Applications/CLI. The project will provide expert assistance to those who feel that creating a test is difficult. A Wiki page will provide step-by-step procedures to test the command line programs.

Progress

There is really no excuse for the lack of testing in Applications/CLI. The infrastructure that has been in place for a few years makes it almost painless to test command line programs. Better documentation and peer pressure will help improve the situation.


Working Notes

Program Test Type Command Line

Add

Regression

${TEST_DATA}/CTHeadAxial.nhdr ${TEST_DATA}/CTHeadAxial.nhdr ${TEMP}/AddTest.nhdr

AffineRegistration

None

BSplineDeformableRegistration

None

CheckerBoard

Regression

--checkerPattern 5,3,2 ${TEST_DATA}/CTHeadAxial.nhdr ${TEST_DATA}/CTHeadAxialDoubled.nhdr ${TEMP}/CheckerBoardTest.nhdr

ConfidenceConnected

None

CurvatureAnisotropicDiffusion

None

DicomToNrrdConverter

None

DiffusionTensorEstimation

None

DiffusionTensorMathematics

None

DiffusionTensorTest

None

DiffusionWeightedTest

None

DWIDicomLoad

None

ExecutionModelTour

None

ExtractSkeleton/ExtractSkeleton

None

FreesurferSurfaceSectionExtraction

None

GaussianBlurImageFilter

None

GradientAnisotropicDiffusion

None

GrayscaleFillHoleImageFilter

None

GrayscaleGrindPeakImageFilter

None

GrayscaleModelMaker

None

HistogramMatching

None

ImageLabelCombine

None

ImageReadDicomWrite

None

LabelMapSmoothing

None

LinearRegistration

None

MedianImageFilter

Regression

--neighborhood 1,2,3 ${TEST_DATA}/CTHeadAxial.nhdr ${TEMP}/MedianImageFilterTest.nhdr

ModelMaker

None

MultipleModelsExample

None

OrientImage

Regression

--orientation Axial ${MRML_DATA}/fixed.nrrd ${TEMP}/OrientImageTestAxial.nrrd
--orientation Coronal ${MRML_DATA}/fixed.nrrd ${TEMP}/OrientImageTestCoronal.nrrd
--orientation Sagittal ${MRML_DATA}/fixed.nrrd ${TEMP}/OrientImageTestSagittal.nrrd

OtsuThresholdImageFilter

None

OtsuThresholdSegmentation

None

ProbeVolumeWithModel

None

Realign/Realign

None

ResampleVolume2

None

ResampleVolume

None

RigidRegistration

None

Subtract

None

TestGridTransformRegistration

None

VotingBinaryHoleFillingImageFilter

None

ZeroCrossingBasedEdgeDetectionImageFilter.xml

None