source: sasview/src/sas/qtgui/GUITests.py @ 6052c02

ESS_GUI_iss959
Last change on this file since 6052c02 was 57be490, checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago

Merged ESS_GUI_reporting

  • Property mode set to 100644
File size: 7.1 KB
RevLine 
[06b0138]1import unittest
[464cd07]2import sys
[4992ff2]3from PyQt5 import QtGui
4from PyQt5 import QtWidgets
[464cd07]5
6# Prepare the general QApplication instance
[4992ff2]7app = QtWidgets.QApplication(sys.argv)
[06b0138]8
9# Main Window
10from MainWindow.UnitTesting import AboutBoxTest
11from MainWindow.UnitTesting import DataExplorerTest
12from MainWindow.UnitTesting import WelcomePanelTest
13from MainWindow.UnitTesting import DroppableDataLoadWidgetTest
14from MainWindow.UnitTesting import GuiManagerTest
15from MainWindow.UnitTesting import MainWindowTest
16
[53c771e]17## Plotting
[06b0138]18from Plotting.UnitTesting import AddTextTest
19from Plotting.UnitTesting import PlotHelperTest
20from Plotting.UnitTesting import WindowTitleTest
[53c771e]21from Plotting.UnitTesting import ScalePropertiesTest
[06b0138]22from Plotting.UnitTesting import SetGraphRangeTest
23from Plotting.UnitTesting import LinearFitTest
24from Plotting.UnitTesting import PlotPropertiesTest
25from Plotting.UnitTesting import PlotUtilitiesTest
26from Plotting.UnitTesting import ColorMapTest
27from Plotting.UnitTesting import BoxSumTest
28from Plotting.UnitTesting import SlicerModelTest
29from Plotting.UnitTesting import SlicerParametersTest
[53c771e]30from Plotting.UnitTesting import PlotterBaseTest
31from Plotting.UnitTesting import PlotterTest
32from Plotting.UnitTesting import Plotter2DTest
[06b0138]33
34# Calculators
35from Calculators.UnitTesting import KiessigCalculatorTest
36from Calculators.UnitTesting import DensityCalculatorTest
37from Calculators.UnitTesting import GenericScatteringCalculatorTest
[464cd07]38from Calculators.UnitTesting import SLDCalculatorTest
39from Calculators.UnitTesting import SlitSizeCalculatorTest
[01cda57]40from Calculators.UnitTesting import ResolutionCalculatorPanelTest
[d5c5d3d]41from Calculators.UnitTesting import DataOperationUtilityTest
[06b0138]42
43# Utilities
44from Utilities.UnitTesting import GuiUtilsTest
45from Utilities.UnitTesting import SasviewLoggerTest
[3b3b40b]46from Utilities.UnitTesting import GridPanelTest
47from Utilities.UnitTesting import ModelEditorTest
48from Utilities.UnitTesting import PluginDefinitionTest
49from Utilities.UnitTesting import TabbedModelEditorTest
[01ef3f7]50from Utilities.UnitTesting import AddMultEditorTest
[57be490]51from Utilities.UnitTesting import ReportDialogTest
[06b0138]52
53# Unit Testing
54from UnitTesting import TestUtilsTest
55
56# Perspectives
[7c487846]57#  Fitting
[06b0138]58from Perspectives.Fitting.UnitTesting import FittingWidgetTest
59from Perspectives.Fitting.UnitTesting import FittingPerspectiveTest
60from Perspectives.Fitting.UnitTesting import FittingLogicTest
61from Perspectives.Fitting.UnitTesting import FittingUtilitiesTest
62from Perspectives.Fitting.UnitTesting import FitPageTest
[72f4834]63from Perspectives.Fitting.UnitTesting import FittingOptionsTest
[0595bb7]64from Perspectives.Fitting.UnitTesting import MultiConstraintTest
[da9a0722]65from Perspectives.Fitting.UnitTesting import ComplexConstraintTest
[676f137]66from Perspectives.Fitting.UnitTesting import ConstraintWidgetTest
[0595bb7]67
[7c487846]68#  Invariant
69from Perspectives.Invariant.UnitTesting import InvariantPerspectiveTest
[06b0138]70
[676f137]71#  Inversion
72from Perspectives.Inversion.UnitTesting import InversionPerspectiveTest
73
[06b0138]74def suite():
75    suites = (
76        # Plotting
77        unittest.makeSuite(Plotter2DTest.Plotter2DTest,               'test'),
[53c771e]78        unittest.makeSuite(PlotHelperTest.PlotHelperTest,             'test'),
[06b0138]79        unittest.makeSuite(AddTextTest.AddTextTest,                   'test'),
[53c771e]80        unittest.makeSuite(WindowTitleTest.WindowTitleTest,           'test'),
[06b0138]81        unittest.makeSuite(ScalePropertiesTest.ScalePropertiesTest,   'test'),
82        unittest.makeSuite(SetGraphRangeTest.SetGraphRangeTest,       'test'),
83        unittest.makeSuite(LinearFitTest.LinearFitTest,               'test'),
84        unittest.makeSuite(PlotPropertiesTest.PlotPropertiesTest,     'test'),
85        unittest.makeSuite(PlotUtilitiesTest.PlotUtilitiesTest,       'test'),
86        unittest.makeSuite(ColorMapTest.ColorMapTest,                 'test'),
87        unittest.makeSuite(BoxSumTest.BoxSumTest,                     'test'),
88        unittest.makeSuite(SlicerModelTest.SlicerModelTest,           'test'),
89        unittest.makeSuite(SlicerParametersTest.SlicerParametersTest, 'test'),
[53c771e]90        unittest.makeSuite(PlotterBaseTest.PlotterBaseTest,           'test'),
91        unittest.makeSuite(PlotterTest.PlotterTest,                   'test'),
[06b0138]92
93        # Main window
94        unittest.makeSuite(DataExplorerTest.DataExplorerTest,  'test'),
[f4a1433]95        unittest.makeSuite(DroppableDataLoadWidgetTest.DroppableDataLoadWidgetTest, 'test'),
[06b0138]96        unittest.makeSuite(MainWindowTest.MainWindowTest,      'test'),
[53c771e]97        unittest.makeSuite(GuiManagerTest.GuiManagerTest,      'test'),
98        unittest.makeSuite(AboutBoxTest.AboutBoxTest,          'test'),
99        unittest.makeSuite(WelcomePanelTest.WelcomePanelTest,  'test'),
[06b0138]100
101        # Utilities
[0261bc1]102        unittest.makeSuite(TestUtilsTest.TestUtilsTest,           'test'),
103        unittest.makeSuite(SasviewLoggerTest.SasviewLoggerTest,   'test'),
104        unittest.makeSuite(GuiUtilsTest.GuiUtilsTest,             'test'),
105        unittest.makeSuite(GuiUtilsTest.DoubleValidatorTest,      'test'),
106        unittest.makeSuite(GuiUtilsTest.HashableStandardItemTest, 'test'),
[3b3b40b]107        unittest.makeSuite(GridPanelTest.BatchOutputPanelTest,    'test'),
108        unittest.makeSuite(ModelEditorTest.ModelEditorTest,            'test'),
109        unittest.makeSuite(PluginDefinitionTest.PluginDefinitionTest,  'test'),
110        unittest.makeSuite(TabbedModelEditorTest.TabbedModelEditorTest,'test'),
[01ef3f7]111        unittest.makeSuite(AddMultEditorTest.AddMultEditorTest, 'test'),
[57be490]112        unittest.makeSuite(ReportDialogTest.ReportDialogTest,     'test'),
[06b0138]113
114        # Calculators
115        unittest.makeSuite(KiessigCalculatorTest.KiessigCalculatorTest,                     'test'),
116        unittest.makeSuite(DensityCalculatorTest.DensityCalculatorTest,                     'test'),
117        unittest.makeSuite(GenericScatteringCalculatorTest.GenericScatteringCalculatorTest, 'test'),
[464cd07]118        unittest.makeSuite(SLDCalculatorTest.SLDCalculatorTest, 'test'),
119        unittest.makeSuite(SlitSizeCalculatorTest.SlitSizeCalculatorTest, 'test'),
[01cda57]120        unittest.makeSuite(ResolutionCalculatorPanelTest.ResolutionCalculatorPanelTest, 'test'),
[d5c5d3d]121        unittest.makeSuite(DataOperationUtilityTest.DataOperationUtilityTest, 'test'),
[06b0138]122
123        # Perspectives
[7c487846]124        #  Fitting
[06b0138]125        unittest.makeSuite(FittingPerspectiveTest.FittingPerspectiveTest, 'test'),
126        unittest.makeSuite(FittingWidgetTest.FittingWidgetTest,           'test'),
127        unittest.makeSuite(FittingLogicTest.FittingLogicTest,             'test'),
128        unittest.makeSuite(FittingUtilitiesTest.FittingUtilitiesTest,     'test'),
129        unittest.makeSuite(FitPageTest.FitPageTest,                       'test'),
[72f4834]130        unittest.makeSuite(FittingOptionsTest.FittingOptionsTest,         'test'),
[0595bb7]131        unittest.makeSuite(MultiConstraintTest.MultiConstraintTest,       'test'),
[676f137]132        unittest.makeSuite(ConstraintWidgetTest.ConstraintWidgetTest,     'test'),
[da9a0722]133        unittest.makeSuite(ComplexConstraintTest.ComplexConstraintTest,   'test'),
[676f137]134
[7c487846]135        #  Invariant
136        unittest.makeSuite(InvariantPerspectiveTest.InvariantPerspectiveTest,  'test'),
[50bfab0]137        #  Inversion
138        unittest.makeSuite(InversionPerspectiveTest.InversionTest,  'test'),
[676f137]139        )
[06b0138]140    return unittest.TestSuite(suites)
141
142if __name__ == "__main__":
143    unittest.main(defaultTest="suite")
144
Note: See TracBrowser for help on using the repository browser.