-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathrun_tests.py
More file actions
executable file
·25 lines (21 loc) · 866 Bytes
/
run_tests.py
File metadata and controls
executable file
·25 lines (21 loc) · 866 Bytes
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
#!/usr/bin/env python2.7
import os
import sys
import unittest
source_dir = os.path.join(os.path.dirname(__file__), 'source')
sys.path.insert(0, source_dir)
from tests.test_notification_pusher import NotificationPusherTestCase
from tests.test_redirect_checker import RedirectCheckerTestCase
from tests.tests_lib.test_utils import LibUtilsTestCase
from tests.tests_lib.test_init import LibInitTestCase
from tests.tests_lib.test_worker import LibWorkerTestCase
if __name__ == '__main__':
suite = unittest.TestSuite((
unittest.makeSuite(NotificationPusherTestCase),
unittest.makeSuite(RedirectCheckerTestCase),
unittest.makeSuite(LibUtilsTestCase),
unittest.makeSuite(LibInitTestCase),
unittest.makeSuite(LibWorkerTestCase)
))
result = unittest.TextTestRunner().run(suite)
sys.exit(not result.wasSuccessful())