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 | |
---|
32 | # Utilities |
---|
33 | from Utilities.UnitTesting import GuiUtilsTest |
---|
34 | from Utilities.UnitTesting import SasviewLoggerTest |
---|
35 | |
---|
36 | # Unit Testing |
---|
37 | from UnitTesting import TestUtilsTest |
---|
38 | |
---|
39 | # Perspectives |
---|
40 | import path_prepare |
---|
41 | from Perspectives.Fitting.UnitTesting import FittingWidgetTest |
---|
42 | from Perspectives.Fitting.UnitTesting import FittingPerspectiveTest |
---|
43 | from Perspectives.Fitting.UnitTesting import FittingLogicTest |
---|
44 | from Perspectives.Fitting.UnitTesting import FittingUtilitiesTest |
---|
45 | |
---|
46 | |
---|
47 | def suite(): |
---|
48 | suites = ( |
---|
49 | # Plotting |
---|
50 | unittest.makeSuite(PlotHelperTest.PlotHelperTest, 'test'), |
---|
51 | unittest.makeSuite(PlotterTest.PlotterTest, 'test'), |
---|
52 | unittest.makeSuite(WindowTitleTest.WindowTitleTest, 'test'), |
---|
53 | unittest.makeSuite(PlotterBaseTest.PlotterBaseTest, 'test'), |
---|
54 | unittest.makeSuite(Plotter2DTest.Plotter2DTest, 'test'), |
---|
55 | unittest.makeSuite(AddTextTest.AddTextTest, 'test'), |
---|
56 | unittest.makeSuite(ScalePropertiesTest.ScalePropertiesTest, 'test'), |
---|
57 | unittest.makeSuite(SetGraphRangeTest.SetGraphRangeTest, 'test'), |
---|
58 | unittest.makeSuite(LinearFitTest.LinearFitTest, 'test'), |
---|
59 | unittest.makeSuite(PlotPropertiesTest.PlotPropertiesTest, 'test'), |
---|
60 | unittest.makeSuite(PlotUtilitiesTest.PlotUtilitiesTest, 'test'), |
---|
61 | unittest.makeSuite(ColorMapTest.ColorMapTest, 'test'), |
---|
62 | unittest.makeSuite(BoxSumTest.BoxSumTest, 'test'), |
---|
63 | unittest.makeSuite(SlicerModelTest.SlicerModelTest, 'test'), |
---|
64 | unittest.makeSuite(SlicerParametersTest.SlicerParametersTest, 'test'), |
---|
65 | |
---|
66 | # Main window |
---|
67 | unittest.makeSuite(AboutBoxTest.AboutBoxTest, 'test'), |
---|
68 | unittest.makeSuite(DataExplorerTest.DataExplorerTest, 'test'), |
---|
69 | unittest.makeSuite(WelcomePanelTest.WelcomePanelTest, 'test'), |
---|
70 | unittest.makeSuite(DroppableDataLoadWidgetTest.DroppableDataLoadWidgetTest, 'test'), |
---|
71 | unittest.makeSuite(GuiManagerTest.GuiManagerTest, 'test'), |
---|
72 | unittest.makeSuite(GuiUtilsTest.GuiUtilsTest, 'test'), |
---|
73 | unittest.makeSuite(MainWindowTest.MainWindowTest, 'test'), |
---|
74 | |
---|
75 | # Utilities |
---|
76 | unittest.makeSuite(TestUtilsTest.TestUtilsTest, 'test'), |
---|
77 | unittest.makeSuite(SasviewLoggerTest.SasviewLoggerTest, 'test'), |
---|
78 | |
---|
79 | # Calculators |
---|
80 | unittest.makeSuite(KiessigCalculatorTest.KiessigCalculatorTest, 'test'), |
---|
81 | unittest.makeSuite(DensityCalculatorTest.DensityCalculatorTest, 'test'), |
---|
82 | |
---|
83 | # Perspectives |
---|
84 | unittest.makeSuite(FittingPerspectiveTest.FittingPerspectiveTest, 'test'), |
---|
85 | unittest.makeSuite(FittingWidgetTest.FittingWidgetTest, 'test'), |
---|
86 | unittest.makeSuite(FittingLogicTest.FittingLogicTest, 'test'), |
---|
87 | unittest.makeSuite(FittingUtilitiesTest.FittingUtilitiesTest, 'test'), |
---|
88 | ) |
---|
89 | return unittest.TestSuite(suites) |
---|
90 | |
---|
91 | if __name__ == "__main__": |
---|
92 | unittest.main(defaultTest="suite") |
---|
93 | |
---|