-
Notifications
You must be signed in to change notification settings - Fork 34
/
run_all_tests.py
77 lines (57 loc) · 2.82 KB
/
run_all_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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
"""This script will run all tests in order.
Run the following command:
python .\run_all_tests.py
"""
import unittest
import xmlrunner
class TestSequenceFunctions(unittest.TestCase):
def test_a_createdatabase(self):
from test_create_sandbox import TestStringMethods as SandboxMethods
SandboxMethods.test_createdatabase(self)
def test_b_createcategory(self):
from test_create_sandbox import TestStringMethods as SandboxMethods
SandboxMethods.test_createcategory(self)
def test_c_createtemplate(self):
from test_create_sandbox import TestStringMethods as SandboxMethods
SandboxMethods.test_createtemplate(self)
def test_d_createelement(self):
from test_create_sandbox import TestStringMethods as SandboxMethods
SandboxMethods.test_createelement(self)
def test_e_writesinglevalue(self):
from test_write_attributes import TestStringMethods as WriteMethods
WriteMethods.test_writesinglevalue(self)
def test_f_writedataset(self):
from test_write_attributes import TestStringMethods as WriteMethods
WriteMethods.test_writedataset(self)
def test_g_updateattributevalue(self):
from test_write_attributes import TestStringMethods as WriteMethods
WriteMethods.test_updateattributevalue(self)
def test_h_readattributesnapshot(self):
from test_read_attributes import TestStringMethods as ReadMethods
ReadMethods.test_readattributesnapshot(self)
def test_i_readattributestream(self):
from test_read_attributes import TestStringMethods as ReadMethods
ReadMethods.test_readattributestream(self)
def test_j_readattributeselectedfields(self):
from test_read_attributes import TestStringMethods as ReadMethods
ReadMethods.test_readattributeselectedfields(self)
def test_k_dobatchcall(self):
from test_batch_call import TestStringMethods as BatchMethods
BatchMethods.test_dobatchcall(self)
def test_l_deleteelement(self):
from test_create_sandbox import TestStringMethods as SandboxMethods
SandboxMethods.test_deleteelement(self)
def test_m_deletetemplate(self):
from test_create_sandbox import TestStringMethods as SandboxMethods
SandboxMethods.test_deletetemplate(self)
def test_n_deletecategory(self):
from test_create_sandbox import TestStringMethods as SandboxMethods
SandboxMethods.test_deletecategory(self)
def test_o_delete_database(self):
from test_create_sandbox import TestStringMethods as SandboxMethods
SandboxMethods.test_deletedatabase(self)
if __name__ == '__main__':
with open('output.xml', 'wb') as output:
unittest.main(
testRunner=xmlrunner.XMLTestRunner(output=output),
failfast=False, buffer=False, catchbreak=False)