[0fc37fea] | 1 | import unittest |
---|
| 2 | |
---|
[83eb5208] | 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 |
---|
[0fc37fea] | 37 | from UnitTesting import TestUtilsTest |
---|
| 38 | |
---|
[811bec1] | 39 | # Perspectives |
---|
| 40 | import path_prepare |
---|
| 41 | from Perspectives.Fitting.UnitTesting import FittingWidgetTest |
---|
| 42 | from Perspectives.Fitting.UnitTesting import FittingPerspectiveTest |
---|
[7248d75d] | 43 | from Perspectives.Fitting.UnitTesting import FittingLogicTest |
---|
| 44 | from Perspectives.Fitting.UnitTesting import FittingUtilitiesTest |
---|
[811bec1] | 45 | |
---|
| 46 | |
---|
[0fc37fea] | 47 | def suite(): |
---|
| 48 | suites = ( |
---|
[83eb5208] | 49 | # Plotting |
---|
[64f1e93] | 50 | unittest.makeSuite(PlotHelperTest.PlotHelperTest, 'test'), |
---|
| 51 | unittest.makeSuite(PlotterTest.PlotterTest, 'test'), |
---|
[83eb5208] | 52 | unittest.makeSuite(WindowTitleTest.WindowTitleTest, 'test'), |
---|
| 53 | unittest.makeSuite(PlotterBaseTest.PlotterBaseTest, 'test'), |
---|
[64f1e93] | 54 | unittest.makeSuite(Plotter2DTest.Plotter2DTest, 'test'), |
---|
[83eb5208] | 55 | unittest.makeSuite(AddTextTest.AddTextTest, 'test'), |
---|
[64f1e93] | 56 | unittest.makeSuite(ScalePropertiesTest.ScalePropertiesTest, 'test'), |
---|
[d3ca363] | 57 | unittest.makeSuite(SetGraphRangeTest.SetGraphRangeTest, 'test'), |
---|
[b46f285] | 58 | unittest.makeSuite(LinearFitTest.LinearFitTest, 'test'), |
---|
[87cc73a] | 59 | unittest.makeSuite(PlotPropertiesTest.PlotPropertiesTest, 'test'), |
---|
| 60 | unittest.makeSuite(PlotUtilitiesTest.PlotUtilitiesTest, 'test'), |
---|
[092a3d9] | 61 | unittest.makeSuite(ColorMapTest.ColorMapTest, 'test'), |
---|
[3bdbfcc] | 62 | unittest.makeSuite(BoxSumTest.BoxSumTest, 'test'), |
---|
| 63 | unittest.makeSuite(SlicerModelTest.SlicerModelTest, 'test'), |
---|
[57b7ee2] | 64 | unittest.makeSuite(SlicerParametersTest.SlicerParametersTest, 'test'), |
---|
[83eb5208] | 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 |
---|
[811bec1] | 84 | unittest.makeSuite(FittingPerspectiveTest.FittingPerspectiveTest, 'test'), |
---|
| 85 | unittest.makeSuite(FittingWidgetTest.FittingWidgetTest, 'test'), |
---|
[7248d75d] | 86 | unittest.makeSuite(FittingLogicTest.FittingLogicTest, 'test'), |
---|
| 87 | unittest.makeSuite(FittingUtilitiesTest.FittingUtilitiesTest, 'test'), |
---|
[0fc37fea] | 88 | ) |
---|
| 89 | return unittest.TestSuite(suites) |
---|
| 90 | |
---|
| 91 | if __name__ == "__main__": |
---|
| 92 | unittest.main(defaultTest="suite") |
---|
| 93 | |
---|