Unit tests for command line and loadable modules

Couple of questions about testing:

  1. Are there any unit tests recommendations for command line interface and loadable modules?
  2. How to use Slicer test data (md5 checksum file), if command line module needs CT data as an input value?

For example CLI module:

  1. Input data: CT volume and several parameters;
  2. Output data: a scalar volume and several temporary files.

Test checks that temporary files are created during data processing and the output scalar volume has proper dimension and size in bytes.

1 Like