testit-cli 2.8.3__tar.gz → 2.8.4__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-2.8.3 → testit_cli-2.8.4}/PKG-INFO +1 -1
- {testit_cli-2.8.3 → testit_cli-2.8.4}/setup.py +1 -1
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/click_commands.py +1 -1
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/converter.py +2 -2
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/filter_factory.py +11 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/service.py +2 -1
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli.egg-info/PKG-INFO +1 -1
- {testit_cli-2.8.3 → testit_cli-2.8.4}/LICENSE +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/README.md +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/setup.cfg +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/__init__.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/__main__.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/apiclient.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/autotests_filter.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/dir_worker.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/file_worker.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/html_escape_utils.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/importer.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/logger.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/models/__init__.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/models/config.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/models/mode.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/models/status.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/models/testcase.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/models/testrun.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/parser.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/service_factory.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli/validation.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli.egg-info/SOURCES.txt +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli.egg-info/dependency_links.txt +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli.egg-info/entry_points.txt +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli.egg-info/requires.txt +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/src/testit_cli.egg-info/top_level.txt +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/tests/test_click.py +0 -0
- {testit_cli-2.8.3 → testit_cli-2.8.4}/tests/test_service.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testit-cli
|
|
3
|
-
Version: 2.8.
|
|
3
|
+
Version: 2.8.4
|
|
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
|
|
@@ -167,7 +167,7 @@ def upload_attachments_for_test_run(url, token, testrun_id, debug, attachments,
|
|
|
167
167
|
PYTHON_FRAMEWORKS = ['pytest', 'robotframework', 'behave', 'nose']
|
|
168
168
|
JAVA_FRAMEWORKS = ['gradle-testng', 'gradle-junit5', 'gradle-junit4', 'gradle-cucumber', 'maven-testng', 'maven-junit5', 'maven-junit4', 'maven-cucumber']
|
|
169
169
|
KOTLIN_FRAMEWORKS = ['kotest']
|
|
170
|
-
JAVASCRIPT_FRAMEWORKS = ['cucumberjs', 'codeceptjs', 'jest', 'mocha', 'playwright', 'testcafe']
|
|
170
|
+
JAVASCRIPT_FRAMEWORKS = ['cucumberjs', 'codeceptjs', 'jest', 'mocha', 'playwright', 'testcafe', 'cypress']
|
|
171
171
|
DOTNET_FRAMEWORKS = ['mstest', 'nunit', 'xunit', 'specflow']
|
|
172
172
|
GOLANG_FRAMEWORKS = ['golang']
|
|
173
173
|
SWIFT_FRAMEWORKS = ['xctest']
|
|
@@ -155,8 +155,8 @@ class Converter:
|
|
|
155
155
|
return AssignAttachmentApiModel(id=attachment_model.id)
|
|
156
156
|
|
|
157
157
|
@staticmethod
|
|
158
|
-
def attachment_put_models_to_assign_attachments(
|
|
159
|
-
->
|
|
158
|
+
def attachment_put_models_to_assign_attachments(
|
|
159
|
+
attachment_models: typing.List[AttachmentPutModel]) -> typing.List[AssignAttachmentApiModel]:
|
|
160
160
|
return list(map(lambda x: Converter.attachment_put_model_to_assign_attachment(x), attachment_models))
|
|
161
161
|
|
|
162
162
|
@classmethod
|
|
@@ -27,6 +27,7 @@ class FilterFactory:
|
|
|
27
27
|
'jest': cls.__initialize_cucumber_cucumberjs_jest_golang_filter,
|
|
28
28
|
'mocha': cls.__initialize_codeceptjs_mocha_playwright_filter,
|
|
29
29
|
'playwright': cls.__initialize_codeceptjs_mocha_playwright_filter,
|
|
30
|
+
'cypress': cls.__initialize_cypress_filter,
|
|
30
31
|
'mstest': cls.__initialize_mstest_nunit_xunit_filter,
|
|
31
32
|
'nunit': cls.__initialize_mstest_nunit_xunit_filter,
|
|
32
33
|
'xunit': cls.__initialize_mstest_nunit_xunit_filter,
|
|
@@ -108,6 +109,16 @@ class FilterFactory:
|
|
|
108
109
|
|
|
109
110
|
return '|'.join(autotest_keys)
|
|
110
111
|
|
|
112
|
+
@classmethod
|
|
113
|
+
def __initialize_cypress_filter(cls, external_keys: typing.List[str]) -> str:
|
|
114
|
+
"""Initialize filter for Cypress run"""
|
|
115
|
+
autotest_keys = []
|
|
116
|
+
|
|
117
|
+
for external_key in external_keys:
|
|
118
|
+
autotest_keys.append(re.escape(external_key))
|
|
119
|
+
|
|
120
|
+
return ';'.join(autotest_keys)
|
|
121
|
+
|
|
111
122
|
@classmethod
|
|
112
123
|
def __initialize_cucumber_cucumberjs_jest_golang_filter(cls, external_keys: typing.List[str]) -> str:
|
|
113
124
|
"""Initialize filter for Cucumber or CucumberJS or Jest or Golang run"""
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import logging
|
|
2
|
+
import typing
|
|
2
3
|
|
|
3
4
|
from testit_api_client.model.assign_attachment_api_model import AssignAttachmentApiModel
|
|
4
5
|
from testit_api_client.model.attachment_put_model import AttachmentPutModel
|
|
@@ -87,7 +88,7 @@ class Service:
|
|
|
87
88
|
logging.info("Successfully sent test results")
|
|
88
89
|
|
|
89
90
|
def __update_test_run_with_attachments(self, test_run: TestRun) -> None:
|
|
90
|
-
attachments:
|
|
91
|
+
attachments: typing.List[AssignAttachmentApiModel] = Converter.attachment_put_models_to_assign_attachments(
|
|
91
92
|
self.__upload_attachments())
|
|
92
93
|
test_run.attachments.extend(attachments)
|
|
93
94
|
self.__api_client.update_test_run(test_run)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testit-cli
|
|
3
|
-
Version: 2.8.
|
|
3
|
+
Version: 2.8.4
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|