Frequently asked questions about how to write and execute tests for Slicer.
How are the tests executed ?
There are two main mechanisms:
How are the tests discovered ?
To be discovered, scripted modules are expected to have the following:
implement a test case class named
<ModuleName>Test(itself deriving from
provide a function called
These will ensure that the
runTest() function is always discovered and executed.
Scripted modules generated using the Extension Wizard already implement the expected test case.