From 642975bab7bb2d943cd646b483bdf0f191a71ecc Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 31 Aug 2014 07:51:53 +0100 Subject: Run all test cases together This allows nicer output, as all the test results are grouped, and with a glimpse you can determine wether they passed or not --- client/test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/test.py b/client/test.py index 0c35cbf..29b9ce0 100644 --- a/client/test.py +++ b/client/test.py @@ -205,6 +205,9 @@ if __name__ == '__main__': test_cases.append(TestG2P) test_cases.append(TestMic) + suite = unittest.TestSuite() + for test_case in test_cases: - suite = unittest.TestLoader().loadTestsFromTestCase(test_case) - unittest.TextTestRunner(verbosity=2).run(suite) + suite.addTests(unittest.TestLoader().loadTestsFromTestCase(test_case)) + + unittest.TextTestRunner(verbosity=2).run(suite) -- cgit v1.3.1