-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestRunner.py
More file actions
25 lines (18 loc) · 813 Bytes
/
TestRunner.py
File metadata and controls
25 lines (18 loc) · 813 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
from unittest import TestLoader, TestSuite, TextTestRunner
import unittest
#import the tests to run
from Tests.test_Search_Field_Empty import test_Search_Field_Empty
from Tests.test_Search_Field_Works import test_Search_Field_Works
#TODO use testtools for running the tests in parallel
import testtools as testtools
import HtmlTestRunner
if __name__ == "__main__":
test_loader = TestLoader()
# Test Suite is used since there are multiple test cases
test_suite = TestSuite((
#Load the tests
test_loader.loadTestsFromTestCase(test_Search_Field_Empty),
test_loader.loadTestsFromTestCase(test_Search_Field_Works),
))
#Run the tests and produce one report for them
unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(combine_reports=True))