CMakeLists.txt 7.27 KB
Newer Older
1
# Tests for Muon GUIs
2
3

set ( TEST_PY_FILES
4
5
6
   ADSHandler/workspace_naming_test.py
   elemental_analysis/elemental_analysis_test.py
   elemental_analysis/name_generator_test.py
7
8
   elemental_analysis/detectors_presenter_test.py
   elemental_analysis/periodic_table_test.py
9
   elemental_analysis/peak_selector_view_test.py
10
   elemental_analysis/element_button_test.py
11
12
13
   elemental_analysis/periodic_combo_test.py
   elemental_analysis/periodic_list_test.py
   elemental_analysis/periodic_table_item_test.py
14
15
   elemental_analysis/lmodel_test.py
   elemental_analysis/load_model_test.py
16
17
   elemental_analysis_2/elemental_analysis_context_test.py
   elemental_analysis_2/elemental_analysis_main_GUI_test.py
18
19
20
21
22
23
24
25
26
27
   elemental_analysis_2/EA_loading_tab/elemental_analysis_loadutils_test.py
   elemental_analysis_2/EA_loading_tab/elemental_analysis_load_model_test.py
   elemental_analysis_2/EA_loading_tab/elemental_analysis_load_widget_presenter_test.py
   elemental_analysis_2/EA_loading_tab/elemental_analysis_loadfile_model_test.py
   elemental_analysis_2/EA_loading_tab/elemental_analysis_loadrun_model_test.py
   elemental_analysis_2/EA_loading_tab/elemental_analysis_loadrun_presenter_single_run_test.py
   elemental_analysis_2/EA_loading_tab/elemental_analysis_loadrun_presenter_increment_decrement_test.py
   elemental_analysis_2/EA_grouping_tab/elemental_analysis_grouping_tab_model_test.py
   elemental_analysis_2/EA_grouping_tab/elemental_analysis_grouping_tab_presenter_test.py
   elemental_analysis_2/EA_grouping_tab/elemental_analysis_grouping_table_presenter_test.py
28
29
   external_plotting_model_test.py
   fft_presenter_context_interaction_test.py
Anthony Lim's avatar
Anthony Lim committed
30
   FFTModel_test.py
31
   FFTPresenter_test.py
32
33
   fit_information_test.py
   fit_parameters_test.py
34
   fitting_context_test.py
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
   fitting_tab_widget/fitting_tab_model_test.py
   fitting_tab_widget/fitting_tab_presenter_test.py
   fitting_tab_widget/workspace_selector_dialog_presenter_test.py
   frequency_domain_context_test.py
   grouping_tab/calculate_pair_and_group_test.py
   grouping_tab/difference_table_presenter_test.py
   grouping_tab/difference_table_selector_test.py
   grouping_tab/difference_widget_presenter_test.py
   grouping_tab/grouping_tab_model_test.py
   grouping_tab/grouping_tab_presenter_test.py
   grouping_tab/grouping_table_presenter_test.py
   grouping_tab/pairing_table_alpha_test.py
   grouping_tab/pairing_table_group_selector_test.py
   grouping_tab/pairing_table_presenter_test.py
   help_widget_presenter_test.py
50
   home_instrument_widget_test.py
51
   home_runinfo_presenter_test.py
52
   home_tab_widget/home_instrument_widget_presenter_test.py
53
   list_selector/list_selector_presenter_test.py
54
   list_selector/list_selector_view_test.py
T Jubb's avatar
T Jubb committed
55
56
   load_file_widget/loadfile_model_test.py
   load_file_widget/loadfile_presenter_multiple_file_test.py
57
   load_file_widget/loadfile_presenter_single_file_test.py
T Jubb's avatar
T Jubb committed
58
   load_file_widget/loadfile_view_test.py
59
60
   load_run_widget/loadrun_model_test.py
   load_run_widget/loadrun_presenter_current_run_test.py
Matthew Andrew's avatar
Matthew Andrew committed
61
   load_run_widget/loadrun_presenter_increment_decrement_test.py
62
63
   load_run_widget/loadrun_presenter_multiple_file_test.py
   load_run_widget/loadrun_presenter_single_file_test.py
Matthew Andrew's avatar
Matthew Andrew committed
64
   load_run_widget/loadrun_view_test.py
Matthew Andrew's avatar
Matthew Andrew committed
65
   loading_tab/loadwidget_presenter_failure_test.py
66
67
68
   loading_tab/loadwidget_presenter_multiple_file_test.py
   loading_tab/loadwidget_presenter_test.py
   max_ent_presenter_load_interaction_test.py
69
   MaxEntModel_test.py
70
   MaxEntPresenter_test.py
71
   muon_context_test.py
72
   muon_context_with_frequency_test.py
73
   muon_data_context_test.py
74
   muon_group_pair_context_test.py
75
   muon_gui_context_test.py
76
   muon_period_info_widget_test.py
77
78
79
80
81
82
83
   phase_table_widget/phase_table_context_test.py
   phase_table_widget/phase_table_presenter_test.py
   plot_widget/plot_widget_model_test.py
   plot_widget/plot_widget_presenter_test.py
   plotting_canvas/plot_color_queue_test.py
   plotting_canvas/plotting_canvas_model_test.py
   plotting_canvas/plotting_canvas_presenter_test.py
84
   results_tab_widget/results_tab_model_test.py
85
   results_tab_widget/results_tab_presenter_test.py
86
87
   seq_fitting_tab_widget/seq_fitting_tab_presenter_test.py
   seq_fitting_tab_widget/sequential_table_test.py
88
   transform_widget_new_test.py
89
90
   transformWidget_test.py
   utilities/load_utils_test.py
91
   utilities/muon_base_pair_test.py
92
93
94
   utilities/muon_file_utils_test.py
   utilities/muon_group_test.py
   utilities/muon_load_data_test.py
95
   utilities/muon_pair_test.py
96
   utilities/muon_phasequad_test.py
97
   utilities/muon_workspace_wrapper_directory_test.py
98
   utilities/muon_workspace_wrapper_test.py
Matthew Andrew's avatar
Matthew Andrew committed
99
   utilities/run_string_utils_conversion_test.py
100
101
   utilities/run_string_utils_operator_test.py
   utilities/thread_model_test.py
102
   xml_utils_test.py
103
104
)

105
# LoadWidgetModel_test.py, LoadWidgetPresenter_test.py and LoadWidgetView_test.py are currently not Qt5 compatible
106
107
108
set ( TEST_PY_FILES_QT4
   LoadWidgetPresenter_test.py
   LoadWidgetView_test.py
109
110
   FFTPresenter_test.py
   fft_presenter_context_interaction_test.py
111
   ADSHandler/workspace_naming_test.py
112
   fitting_tab_widget/workspace_selector_dialog_presenter_test.py
113
   fitting_tab_widget/fitting_tab_presenter_test.py
114
   fitting_tab_widget/fitting_tab_model_test.py
115
   seq_fitting_tab_widget/seq_fitting_tab_presenter_test.py
Stephen's avatar
Stephen committed
116
   seq_fitting_tab_widget/sequential_table_test.py
117
118
   fit_information_test.py
   fit_parameters_test.py
119
   fitting_context_test.py
120
   home_instrument_widget_test.py
Stephen's avatar
Stephen committed
121
122
123
124
   plot_widget/plot_widget_presenter_test.py
   plot_widget/plot_widget_model_test.py
   plotting_canvas/plotting_canvas_presenter_test.py
   plotting_canvas/plotting_canvas_model_test.py
125
   external_plotting_model_test.py
126
   home_runinfo_presenter_test.py
127
128
   list_selector/list_selector_view_test.py
   list_selector/list_selector_presenter_test.py
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
   load_run_widget/loadrun_presenter_current_run_test.py
   load_run_widget/loadrun_presenter_single_file_test.py
   load_run_widget/loadrun_presenter_multiple_file_test.py
   load_file_widget/loadfile_presenter_single_file_test.py
   load_file_widget/loadfile_presenter_multiple_file_test.py
   load_file_widget/loadfile_view_test.py
   load_run_widget/loadrun_presenter_increment_decrement_test.py
   load_run_widget/loadrun_view_test.py
   loading_tab/loadwidget_presenter_test.py
   loading_tab/loadwidget_presenter_multiple_file_test.py
   loading_tab/loadwidget_presenter_failure_test.py
   phase_table_widget/phase_table_presenter_test.py
   grouping_tab/grouping_table_presenter_test.py
   grouping_tab/pairing_table_presenter_test.py
   grouping_tab/grouping_tab_presenter_test.py
   grouping_tab/pairing_table_group_selector_test.py
   grouping_tab/pairing_table_alpha_test.py
   MaxEntPresenter_test.py
   max_ent_presenter_load_interaction_test.py
148
   results_tab_widget/results_tab_presenter_test.py
149
   transformWidget_test.py
150
   transform_widget_new_test.py
151
   help_widget_presenter_test.py
152
153
154
   elemental_analysis/PeriodicTableModel_test.py
   elemental_analysis/PeriodicTablePresenter_test.py
   elemental_analysis/load_utils_test.py
Anthony Lim's avatar
Anthony Lim committed
155
   elemental_analysis_2/elemental_analysis_context_test.py
Anthony Lim's avatar
Anthony Lim committed
156
   elemental_analysis_2/elemental_analysis_main_GUI_test.py
157
158
)

159
check_tests_valid(${CMAKE_CURRENT_SOURCE_DIR} ${TEST_PY_FILES})
160
161

# Prefix for test name=PythonAlgorithms
162
163
set(PYUNITTEST_QT_API pyqt5) # force to use qt5
pyunittest_add_test(${CMAKE_CURRENT_SOURCE_DIR} python.MuonQt5
164
${TEST_PY_FILES})
165
unset(PYUNITTEST_QT_API)