source: sasview/src/sas/qtgui/GUITests.py @ ff8cb73

Last change on this file since ff8cb73 was f4a1433, checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago

Merge branch 'master' into ESS_GUI

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