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