1 | import unittest |
---|
2 | |
---|
3 | # Main Window |
---|
4 | from MainWindow.UnitTesting import AboutBoxTest |
---|
5 | from MainWindow.UnitTesting import DataExplorerTest |
---|
6 | from MainWindow.UnitTesting import WelcomePanelTest |
---|
7 | from MainWindow.UnitTesting import DroppableDataLoadWidgetTest |
---|
8 | from MainWindow.UnitTesting import GuiManagerTest |
---|
9 | from MainWindow.UnitTesting import MainWindowTest |
---|
10 | |
---|
11 | # Plotting |
---|
12 | from Plotting.UnitTesting import AddTextTest |
---|
13 | from Plotting.UnitTesting import PlotHelperTest |
---|
14 | from Plotting.UnitTesting import PlotterBaseTest |
---|
15 | from Plotting.UnitTesting import PlotterTest |
---|
16 | from Plotting.UnitTesting import Plotter2DTest |
---|
17 | from Plotting.UnitTesting import ScalePropertiesTest |
---|
18 | from Plotting.UnitTesting import WindowTitleTest |
---|
19 | from Plotting.UnitTesting import SetGraphRangeTest |
---|
20 | from Plotting.UnitTesting import LinearFitTest |
---|
21 | from Plotting.UnitTesting import PlotPropertiesTest |
---|
22 | from Plotting.UnitTesting import PlotUtilitiesTest |
---|
23 | from Plotting.UnitTesting import ColorMapTest |
---|
24 | from Plotting.UnitTesting import BoxSumTest |
---|
25 | from Plotting.UnitTesting import SlicerModelTest |
---|
26 | from Plotting.UnitTesting import SlicerParametersTest |
---|
27 | |
---|
28 | # Calculators |
---|
29 | from Calculators.UnitTesting import KiessigCalculatorTest |
---|
30 | from Calculators.UnitTesting import DensityCalculatorTest |
---|
31 | from Calculators.UnitTesting import GenericScatteringCalculatorTest |
---|
32 | |
---|
33 | # Utilities |
---|
34 | from Utilities.UnitTesting import GuiUtilsTest |
---|
35 | from Utilities.UnitTesting import SasviewLoggerTest |
---|
36 | |
---|
37 | # Unit Testing |
---|
38 | from UnitTesting import TestUtilsTest |
---|
39 | |
---|
40 | # Perspectives |
---|
41 | import path_prepare |
---|
42 | from Perspectives.Fitting.UnitTesting import FittingWidgetTest |
---|
43 | from Perspectives.Fitting.UnitTesting import FittingPerspectiveTest |
---|
44 | from Perspectives.Fitting.UnitTesting import FittingLogicTest |
---|
45 | from Perspectives.Fitting.UnitTesting import FittingUtilitiesTest |
---|
46 | from Perspectives.Fitting.UnitTesting import FitPageTest |
---|
47 | |
---|
48 | |
---|
49 | def suite(): |
---|
50 | suites = ( |
---|
51 | # Plotting |
---|
52 | unittest.makeSuite(PlotHelperTest.PlotHelperTest, 'test'), |
---|
53 | unittest.makeSuite(PlotterTest.PlotterTest, 'test'), |
---|
54 | unittest.makeSuite(WindowTitleTest.WindowTitleTest, 'test'), |
---|
55 | unittest.makeSuite(PlotterBaseTest.PlotterBaseTest, 'test'), |
---|
56 | unittest.makeSuite(Plotter2DTest.Plotter2DTest, 'test'), |
---|
57 | unittest.makeSuite(AddTextTest.AddTextTest, 'test'), |
---|
58 | unittest.makeSuite(ScalePropertiesTest.ScalePropertiesTest, 'test'), |
---|
59 | unittest.makeSuite(SetGraphRangeTest.SetGraphRangeTest, 'test'), |
---|
60 | unittest.makeSuite(LinearFitTest.LinearFitTest, 'test'), |
---|
61 | unittest.makeSuite(PlotPropertiesTest.PlotPropertiesTest, 'test'), |
---|
62 | unittest.makeSuite(PlotUtilitiesTest.PlotUtilitiesTest, 'test'), |
---|
63 | unittest.makeSuite(ColorMapTest.ColorMapTest, 'test'), |
---|
64 | unittest.makeSuite(BoxSumTest.BoxSumTest, 'test'), |
---|
65 | unittest.makeSuite(SlicerModelTest.SlicerModelTest, 'test'), |
---|
66 | unittest.makeSuite(SlicerParametersTest.SlicerParametersTest, 'test'), |
---|
67 | |
---|
68 | # Main window |
---|
69 | unittest.makeSuite(AboutBoxTest.AboutBoxTest, 'test'), |
---|
70 | unittest.makeSuite(DataExplorerTest.DataExplorerTest, 'test'), |
---|
71 | unittest.makeSuite(WelcomePanelTest.WelcomePanelTest, 'test'), |
---|
72 | unittest.makeSuite(DroppableDataLoadWidgetTest.DroppableDataLoadWidgetTest, 'test'), |
---|
73 | unittest.makeSuite(GuiManagerTest.GuiManagerTest, 'test'), |
---|
74 | unittest.makeSuite(GuiUtilsTest.GuiUtilsTest, 'test'), |
---|
75 | unittest.makeSuite(MainWindowTest.MainWindowTest, 'test'), |
---|
76 | |
---|
77 | # Utilities |
---|
78 | unittest.makeSuite(TestUtilsTest.TestUtilsTest, 'test'), |
---|
79 | unittest.makeSuite(SasviewLoggerTest.SasviewLoggerTest, 'test'), |
---|
80 | |
---|
81 | # Calculators |
---|
82 | unittest.makeSuite(KiessigCalculatorTest.KiessigCalculatorTest, 'test'), |
---|
83 | unittest.makeSuite(DensityCalculatorTest.DensityCalculatorTest, 'test'), |
---|
84 | unittest.makeSuite(GenericScatteringCalculatorTest.GenericScatteringCalculatorTest, 'test'), |
---|
85 | |
---|
86 | # Perspectives |
---|
87 | unittest.makeSuite(FittingPerspectiveTest.FittingPerspectiveTest, 'test'), |
---|
88 | unittest.makeSuite(FittingWidgetTest.FittingWidgetTest, 'test'), |
---|
89 | unittest.makeSuite(FittingLogicTest.FittingLogicTest, 'test'), |
---|
90 | unittest.makeSuite(FittingUtilitiesTest.FittingUtilitiesTest, 'test'), |
---|
91 | unittest.makeSuite(FitPageTest.FitPageTest, 'test'), |
---|
92 | ) |
---|
93 | return unittest.TestSuite(suites) |
---|
94 | |
---|
95 | if __name__ == "__main__": |
---|
96 | unittest.main(defaultTest="suite") |
---|
97 | |
---|