aboutsummaryrefslogtreecommitdiffstats
path: root/test/all_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/all_tests.py')
-rw-r--r--test/all_tests.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/test/all_tests.py b/test/all_tests.py
index f4f3bbe..4a1a532 100644
--- a/test/all_tests.py
+++ b/test/all_tests.py
@@ -1,11 +1,17 @@
import unittest
-import load, input, reader, output, writer
+import test_load
+import test_input
+#import test_reader
+import test_output
+#import test_writer
-add_tests_from_class = unittest.TestLoader().loadTestsFromTestCase
+if __name__ == "__main__":
+ loader = unittest.TestLoader()
+ suite = loader.loadTestsFromModule(test_load)
+ suite.addTests(loader.loadTestsFromModule(test_input))
+ #suite.addTests(loader.loadTestsFromModule(test_reader))
+ suite.addTests(loader.loadTestsFromModule(test_output))
+ #suite.addTests(loader.loadTestsFromModule(test_writer))
-suite = unittest.TestSuite()
-suite.addTest(add_tests_from_class(load.TestBasics))
-suite.addTest(add_tests_from_class(TestHappyPath))
-suite.addTest(add_tests_from_class(TestBadPath))
-suite.addTest(add_tests_from_class(TestPiglitData))
-suite.addTest(add_tests_from_class(TestMainArgsMgmt))
+ runner = unittest.TextTestRunner(verbosity=2)
+ result = runner.run(suite)