-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path__init__.py
More file actions
42 lines (40 loc) · 1.81 KB
/
__init__.py
File metadata and controls
42 lines (40 loc) · 1.81 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
# 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
# pytest -v --cov=contentstack --cov-report=html
# pytest --html=tests/report/test-report.html
from unittest import TestLoader, TestSuite
from .test_assets import TestAsset
from .test_entry import TestEntry
from .test_query import TestQuery
from .test_stack import TestStack
from .test_global_fields import TestGlobalFieldInit
from .test_early_fetch import TestGlobalFieldFetch
from .test_early_find import TestGlobalFieldFind
from .test_live_preview import TestLivePreviewConfig
from .test_taxonomies import TestTaxonomyAPI
def all_tests():
test_module_stack = TestLoader().loadTestsFromTestCase(TestStack)
test_module_asset = TestLoader().loadTestsFromTestCase(TestAsset)
test_module_entry = TestLoader().loadTestsFromTestCase(TestEntry)
test_module_query = TestLoader().loadTestsFromTestCase(TestQuery)
test_module_live_preview = TestLoader().loadTestsFromTestCase(TestLivePreviewConfig)
test_module_globalFields = TestLoader().loadTestsFromName(TestGlobalFieldInit)
test_module_globalFields_fetch = TestLoader().loadTestsFromName(TestGlobalFieldFetch)
test_module_globalFields_find = TestLoader().loadTestsFromName(TestGlobalFieldFind)
test_module_taxonomies = TestLoader().loadTestsFromTestCase(TestTaxonomyAPI)
TestSuite([
test_module_stack,
test_module_asset,
test_module_entry,
test_module_query,
test_module_live_preview,
test_module_globalFields,
test_module_globalFields_fetch,
test_module_globalFields_find,
test_module_taxonomies
])