File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ set(MODULE_PYTHON_SCRIPTS
10
10
BATCHDENTALSEGLib/SegmentationWidget.py
11
11
BATCHDENTALSEGLib/Signal.py
12
12
BATCHDENTALSEGLib/Utils.py
13
+ Testing/__init__.py
14
+ Testing/IntegrationTestCase.py
15
+ Testing/SegmentationWidgetTestCase.py
16
+ Testing/Utils.py
13
17
)
14
18
15
19
set (MODULE_PYTHON_RESOURCES
@@ -18,6 +22,8 @@ set(MODULE_PYTHON_RESOURCES
18
22
Resources/Icons/info.png
19
23
Resources/Icons/loading.gif
20
24
Resources/Icons/start_icon.png
25
+ Testing/Data/PostDentalSurgery_Segmentation.nii.gz
26
+ Testing/Data/PostDentalSurgery_Segmentation_1_3_5.nii.gz
21
27
)
22
28
23
29
#-----------------------------------------------------------------------------
@@ -27,5 +33,10 @@ slicerMacroBuildScriptedModule(
27
33
RESOURCES ${MODULE_PYTHON_RESOURCES}
28
34
WITH_GENERIC_TESTS
29
35
)
36
+ if (BUILD_TESTING )
30
37
38
+ # Register the unittest subclass in the main script as a ctest.
39
+ # Note that the test will also be available at runtime.
40
+ slicer_add_python_unittest (SCRIPT ${MODULE_NAME} .py )
41
+ endif ()
31
42
#-----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments