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