Engineering:Project:DTMRI Testing
From NAMIC Wiki
Home < Engineering:Project:DTMRI Testing
Intro
Create nightly regression tests for the DTMRI module.
People
- Lauren O'Donnell (MIT)
- Raul San-Jose Estepar (BWH)
- Kathryn Hayes (BWH) (setting up slicer test framework)
- Steve Pieper (BWH) (setting up slicer test framework)
- Andy Cedilnik (Kitware) (help with CTest, CMake, and how to do tests well)
Plan
- Write (as many as possible) tcl and C++ test files for code in the DTMRI and TensorUtil modules.
- Produce test data for input.
- Produce correct outputs.
- Have CTest run these tests nightly.
Goals for this week
- All new C++ and tcl tests compile and run nightly
- Decide what are rules for adding tests (i.e. all new classes)
- Decide how to write tests
- Test data location
- Return codes
- Testing style
- Document the above to enforce it in the future and help us finish after this week
What we want to test
- Tensor creation
- Scalar measure creation
- Clustering
- File I/O
- User interface that causes the above to occur (may not be possible to test now)
- Future goals:
- Each (old) class (and/or module function?) should have at least one test
- New functionality should be accompanied by a new test