forked from gregmalcolm/python_koans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_runner_tests.py
26 lines (20 loc) · 984 Bytes
/
_runner_tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import unittest
from runner.runner_tests.test_mountain import TestMountain
from runner.runner_tests.test_sensei import TestSensei
from runner.runner_tests.test_helper import TestHelper
from runner.runner_tests.test_path_to_enlightenment import TestFilterKoanNames
from runner.runner_tests.test_path_to_enlightenment import TestKoansSuite
def suite():
suite = unittest.TestSuite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestMountain))
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestSensei))
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestHelper))
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestFilterKoanNames))
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestKoansSuite))
return suite
if __name__ == '__main__':
res = unittest.TextTestRunner(verbosity=2).run(suite())
sys.exit(not res.wasSuccessful())