-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
52 lines (46 loc) · 2.28 KB
/
__init__.py
File metadata and controls
52 lines (46 loc) · 2.28 KB
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
# pytest --html=tests/report/test-report.html
# above command runs tests and test reports generates in tests/report location.
# nosetests --with-coverage --cover-html
# clean all the .pyc files
# find . -name \*.pyc -delete
# nosetests --with-coverage --cover-html
# pytest --cov=contentstack_utils
# pytest -v --cov=contentstack_utils --cov-report=html
# pytest --html=tests/report/test-report.html
from unittest import TestLoader, TestSuite
from .convert_style import TestConvertStyle
from .test_default_opt_others import TestDefaultOptOther
from .test_helper_node_to_html import TestHelperNodeToHtml
from .test_item_types import TestItemType
from .test_metadata import TestMetadata
from .test_option_render_mark import TestOptionRenderMark
from .test_render_default_options import TestRenderDefaultOption
from .test_render_options import TestRenderOption
from .test_style_type import TestStyleType
from .test_util_srte import TestSuperchargedUtils
from .test_utils import TestUtility
def all_tests():
test_module_itemtype = TestLoader().loadTestsFromTestCase(TestItemType)
test_module_metadata = TestLoader().loadTestsFromTestCase(TestMetadata)
test_module_style_type = TestLoader().loadTestsFromTestCase(TestStyleType)
test_module_utility = TestLoader().loadTestsFromTestCase(TestUtility)
test_module_default_option = TestLoader().loadTestsFromTestCase(TestDefaultOptOther)
test_module_node_to_html = TestLoader().loadTestsFromTestCase(TestHelperNodeToHtml)
test_module_render_mark = TestLoader().loadTestsFromTestCase(TestOptionRenderMark)
test_module_render_default_option = TestLoader().loadTestsFromTestCase(TestRenderDefaultOption)
test_module_render_option = TestLoader().loadTestsFromTestCase(TestRenderOption)
test_module_utils_srte = TestLoader().loadTestsFromTestCase(TestSuperchargedUtils)
test_module_convert_style = TestLoader().loadTestsFromTestCase(TestConvertStyle)
suite = TestSuite([
test_module_itemtype,
test_module_metadata,
test_module_style_type,
test_module_utility,
test_module_default_option,
test_module_node_to_html,
test_module_render_mark,
test_module_render_default_option,
test_module_render_option,
test_module_utils_srte,
test_module_convert_style
])