testit-cli 1.4.0__tar.gz → 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {testit-cli-1.4.0 → testit_cli-2.0.0}/PKG-INFO +4 -2
- {testit-cli-1.4.0 → testit_cli-2.0.0}/README.md +2 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/setup.py +2 -2
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/parser.py +26 -12
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/service.py +1 -1
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli.egg-info/PKG-INFO +4 -2
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli.egg-info/requires.txt +1 -1
- {testit-cli-1.4.0 → testit_cli-2.0.0}/LICENSE +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/setup.cfg +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/__init__.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/__main__.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/apiclient.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/click_commands.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/converter.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/dir_worker.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/file_worker.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/importer.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/logger.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/models/__init__.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/models/config.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/models/mode.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/models/status.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/models/testcase.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/models/testrun.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/service_factory.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli/validation.py +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli.egg-info/SOURCES.txt +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli.egg-info/dependency_links.txt +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli.egg-info/entry_points.txt +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/src/testit_cli.egg-info/top_level.txt +0 -0
- {testit-cli-1.4.0 → testit_cli-2.0.0}/tests/test_click.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: testit-cli
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: This tool is the command line wrapper of Test IT allowing you to upload the test results in real time to Test IT
|
|
5
5
|
Home-page: https://pypi.org/project/testit-cli/
|
|
6
6
|
Author: Integration team
|
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: testit-api-client==
|
|
19
|
+
Requires-Dist: testit-api-client==4.0.0
|
|
20
20
|
Requires-Dist: validators
|
|
21
21
|
Requires-Dist: tqdm
|
|
22
22
|
Requires-Dist: click~=8.0.4
|
|
@@ -37,3 +37,5 @@ You can see more information in [official documentation](https://docs.testit.sof
|
|
|
37
37
|
| 3.5+ | 0.1 |
|
|
38
38
|
| 4.4 | 1.0 |
|
|
39
39
|
| 4.5 | 1.2 |
|
|
40
|
+
| 4.6 | 1.5 |
|
|
41
|
+
| 5.0 | 2.0 |
|
|
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='testit-cli',
|
|
5
|
-
version='
|
|
5
|
+
version='2.0.0',
|
|
6
6
|
description='This tool is the command line wrapper of Test IT allowing you to upload the test results in real time '
|
|
7
7
|
'to Test IT',
|
|
8
8
|
long_description=open('README.md', "r").read(),
|
|
@@ -24,7 +24,7 @@ setup(
|
|
|
24
24
|
py_modules=['testit_cli'],
|
|
25
25
|
packages=find_packages(where='src'),
|
|
26
26
|
package_dir={'': 'src'},
|
|
27
|
-
install_requires=['testit-api-client==
|
|
27
|
+
install_requires=['testit-api-client==4.0.0', 'validators', 'tqdm', 'click~=8.0.4'],
|
|
28
28
|
entry_points={
|
|
29
29
|
'console_scripts': [
|
|
30
30
|
'testit = testit_cli.__main__:console_main'
|
|
@@ -15,9 +15,12 @@ class Parser:
|
|
|
15
15
|
"rerunError",
|
|
16
16
|
"flakyFailure",
|
|
17
17
|
"flakyError",
|
|
18
|
-
"system-out",
|
|
19
18
|
"system-err"]
|
|
20
19
|
__MESSAGE_ATTRIBUTE_NAME = "message"
|
|
20
|
+
__TAGS_OF_TESTS = [
|
|
21
|
+
"testcase",
|
|
22
|
+
"test-case"
|
|
23
|
+
]
|
|
21
24
|
|
|
22
25
|
def __init__(self, config: Config):
|
|
23
26
|
self.__paths_to_results = config.results
|
|
@@ -33,9 +36,8 @@ class Parser:
|
|
|
33
36
|
files.extend(FileWorker.get_files(path_to_results, "xml"))
|
|
34
37
|
|
|
35
38
|
for file in files:
|
|
36
|
-
|
|
37
39
|
xml = minidom.parse(file)
|
|
38
|
-
testcases =
|
|
40
|
+
testcases = self.__get_testcases(xml)
|
|
39
41
|
|
|
40
42
|
for elem in testcases:
|
|
41
43
|
name = elem.attributes["name"].value
|
|
@@ -59,17 +61,19 @@ class Parser:
|
|
|
59
61
|
|
|
60
62
|
if elem.childNodes is not None:
|
|
61
63
|
for child in elem.childNodes:
|
|
62
|
-
if child.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
testcase.get_trace() + self.__form_trace(child.childNodes))
|
|
67
|
-
testcase.set_status(Status.FAILED)
|
|
68
|
-
elif child.nodeName == "skipped":
|
|
69
|
-
if self.__MESSAGE_ATTRIBUTE_NAME in child.attributes:
|
|
70
|
-
testcase.set_message(child.attributes[self.__MESSAGE_ATTRIBUTE_NAME].value)
|
|
64
|
+
if child.attributes and self.__MESSAGE_ATTRIBUTE_NAME in child.attributes:
|
|
65
|
+
testcase.set_message(child.attributes[self.__MESSAGE_ATTRIBUTE_NAME].value)
|
|
66
|
+
|
|
67
|
+
if child.nodeName == "skipped":
|
|
71
68
|
testcase.set_status(Status.SKIPPED)
|
|
72
69
|
|
|
70
|
+
continue
|
|
71
|
+
elif child.nodeName in self.__FAILURE_NODE_NAMES:
|
|
72
|
+
testcase.set_status(Status.FAILED)
|
|
73
|
+
|
|
74
|
+
testcase.set_trace(
|
|
75
|
+
testcase.get_trace() + self.__form_trace(child.childNodes))
|
|
76
|
+
|
|
73
77
|
results.append(testcase)
|
|
74
78
|
|
|
75
79
|
logging.info(
|
|
@@ -89,3 +93,13 @@ class Parser:
|
|
|
89
93
|
trace += cls.__form_trace(child.childNodes)
|
|
90
94
|
|
|
91
95
|
return trace
|
|
96
|
+
|
|
97
|
+
@classmethod
|
|
98
|
+
def __get_testcases(cls, xml) -> list:
|
|
99
|
+
for tag in cls.__TAGS_OF_TESTS:
|
|
100
|
+
testcases = xml.getElementsByTagName(tag)
|
|
101
|
+
|
|
102
|
+
if testcases:
|
|
103
|
+
return testcases
|
|
104
|
+
|
|
105
|
+
return []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: testit-cli
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: This tool is the command line wrapper of Test IT allowing you to upload the test results in real time to Test IT
|
|
5
5
|
Home-page: https://pypi.org/project/testit-cli/
|
|
6
6
|
Author: Integration team
|
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: testit-api-client==
|
|
19
|
+
Requires-Dist: testit-api-client==4.0.0
|
|
20
20
|
Requires-Dist: validators
|
|
21
21
|
Requires-Dist: tqdm
|
|
22
22
|
Requires-Dist: click~=8.0.4
|
|
@@ -37,3 +37,5 @@ You can see more information in [official documentation](https://docs.testit.sof
|
|
|
37
37
|
| 3.5+ | 0.1 |
|
|
38
38
|
| 4.4 | 1.0 |
|
|
39
39
|
| 4.5 | 1.2 |
|
|
40
|
+
| 4.6 | 1.5 |
|
|
41
|
+
| 5.0 | 2.0 |
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|