testit-adapter-pytest 2.1.1__tar.gz → 2.1.2__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-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/PKG-INFO +14 -5
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/README.md +13 -4
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/setup.py +2 -2
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest/plugin.py +11 -0
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest.egg-info/PKG-INFO +14 -5
- testit-adapter-pytest-2.1.2/src/testit_adapter_pytest.egg-info/requires.txt +3 -0
- testit-adapter-pytest-2.1.1/src/testit_adapter_pytest.egg-info/requires.txt +0 -3
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/requirements.txt +0 -0
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/setup.cfg +0 -0
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest/__init__.py +0 -0
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest/listener.py +0 -0
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest.egg-info/SOURCES.txt +0 -0
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest.egg-info/dependency_links.txt +0 -0
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest.egg-info/entry_points.txt +0 -0
- {testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: testit-adapter-pytest
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.2
|
|
4
4
|
Summary: Pytest adapter for Test IT
|
|
5
5
|
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
6
|
Author: Integration team
|
|
@@ -42,6 +42,7 @@ Description: # Test IT TMS adapter for Pytest
|
|
|
42
42
|
testRunName = <optional name>
|
|
43
43
|
adapterMode = <optional>
|
|
44
44
|
certValidation = <optional boolean>
|
|
45
|
+
automaticCreationTestCases = <optional boolean>
|
|
45
46
|
|
|
46
47
|
# This section are optional. It enables debug mode.
|
|
47
48
|
[debug]
|
|
@@ -82,7 +83,11 @@ Description: # Test IT TMS adapter for Pytest
|
|
|
82
83
|
* 1 - in this mode, the adapter sends all results to the test run without filtering.
|
|
83
84
|
* 2 - in this mode, the adapter creates a new test run and sends results to the new test run.
|
|
84
85
|
|
|
85
|
-
* `certValidation` - it enables/disables certificate validation.
|
|
86
|
+
* `certValidation` - it enables/disables certificate validation. Default value - true.
|
|
87
|
+
|
|
88
|
+
* `automaticCreationTestCases` - mode of automatic creation test cases. Default value - false. The adapter supports following modes:
|
|
89
|
+
* true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest).
|
|
90
|
+
* false - in this mode, the adapter will not create a test case.
|
|
86
91
|
|
|
87
92
|
* `tmsProxy` - it enables debug mode. `tmsProxy` is optional.
|
|
88
93
|
|
|
@@ -111,7 +116,9 @@ Description: # Test IT TMS adapter for Pytest
|
|
|
111
116
|
|
|
112
117
|
* `TMS_PROXY` - it enables debug mode. `TMS_PROXY` is optional.
|
|
113
118
|
|
|
114
|
-
* `TMS_CERT_VALIDATION` - it enables/disables certificate validation.
|
|
119
|
+
* `TMS_CERT_VALIDATION` - it enables/disables certificate validation. Default value - true.
|
|
120
|
+
|
|
121
|
+
* `TMS_AUTOMATIC_CREATION_TEST_CASES` - mode of automatic creation test cases. Default value - false.
|
|
115
122
|
|
|
116
123
|
#### Command line
|
|
117
124
|
|
|
@@ -138,7 +145,9 @@ Description: # Test IT TMS adapter for Pytest
|
|
|
138
145
|
|
|
139
146
|
* `tmsProxy` - it enables debug mode. `tmsProxy` is optional.
|
|
140
147
|
|
|
141
|
-
* `tmsCertValidation` - it enables/disables certificate validation.
|
|
148
|
+
* `tmsCertValidation` - it enables/disables certificate validation. Default value - true.
|
|
149
|
+
|
|
150
|
+
* `tmsAutomaticCreationTestCases` - mode of automatic creation test cases. Default value - false.
|
|
142
151
|
|
|
143
152
|
#### Examples
|
|
144
153
|
|
|
@@ -151,7 +160,7 @@ Description: # Test IT TMS adapter for Pytest
|
|
|
151
160
|
Launch with command-line parameters:
|
|
152
161
|
|
|
153
162
|
```
|
|
154
|
-
$ pytest --testit --tmsUrl=<url> --tmsPrivateToken=<token> --tmsProjectId=<id> --tmsConfigurationId=<id> --tmsTestRunId=<optional id> --tmsTestRunName=<optional name> --tmsProxy='{"http":"http://localhost:8888","https":"http://localhost:8888"}' --tmsCertValidation=<optional boolean>
|
|
163
|
+
$ pytest --testit --tmsUrl=<url> --tmsPrivateToken=<token> --tmsProjectId=<id> --tmsConfigurationId=<id> --tmsTestRunId=<optional id> --tmsTestRunName=<optional name> --tmsProxy='{"http":"http://localhost:8888","https":"http://localhost:8888"}' --tmsCertValidation=<optional boolean> --tmsAutomaticCreationTestCases=<optional boolean>
|
|
155
164
|
```
|
|
156
165
|
|
|
157
166
|
If you want to enable debug mode then
|
|
@@ -34,6 +34,7 @@ pip install testit-adapter-pytest
|
|
|
34
34
|
testRunName = <optional name>
|
|
35
35
|
adapterMode = <optional>
|
|
36
36
|
certValidation = <optional boolean>
|
|
37
|
+
automaticCreationTestCases = <optional boolean>
|
|
37
38
|
|
|
38
39
|
# This section are optional. It enables debug mode.
|
|
39
40
|
[debug]
|
|
@@ -74,7 +75,11 @@ pip install testit-adapter-pytest
|
|
|
74
75
|
* 1 - in this mode, the adapter sends all results to the test run without filtering.
|
|
75
76
|
* 2 - in this mode, the adapter creates a new test run and sends results to the new test run.
|
|
76
77
|
|
|
77
|
-
* `certValidation` - it enables/disables certificate validation.
|
|
78
|
+
* `certValidation` - it enables/disables certificate validation. Default value - true.
|
|
79
|
+
|
|
80
|
+
* `automaticCreationTestCases` - mode of automatic creation test cases. Default value - false. The adapter supports following modes:
|
|
81
|
+
* true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest).
|
|
82
|
+
* false - in this mode, the adapter will not create a test case.
|
|
78
83
|
|
|
79
84
|
* `tmsProxy` - it enables debug mode. `tmsProxy` is optional.
|
|
80
85
|
|
|
@@ -103,7 +108,9 @@ You can use environment variables (environment variables take precedence over fi
|
|
|
103
108
|
|
|
104
109
|
* `TMS_PROXY` - it enables debug mode. `TMS_PROXY` is optional.
|
|
105
110
|
|
|
106
|
-
* `TMS_CERT_VALIDATION` - it enables/disables certificate validation.
|
|
111
|
+
* `TMS_CERT_VALIDATION` - it enables/disables certificate validation. Default value - true.
|
|
112
|
+
|
|
113
|
+
* `TMS_AUTOMATIC_CREATION_TEST_CASES` - mode of automatic creation test cases. Default value - false.
|
|
107
114
|
|
|
108
115
|
#### Command line
|
|
109
116
|
|
|
@@ -130,7 +137,9 @@ You also can CLI variables (CLI variables take precedence over environment varia
|
|
|
130
137
|
|
|
131
138
|
* `tmsProxy` - it enables debug mode. `tmsProxy` is optional.
|
|
132
139
|
|
|
133
|
-
* `tmsCertValidation` - it enables/disables certificate validation.
|
|
140
|
+
* `tmsCertValidation` - it enables/disables certificate validation. Default value - true.
|
|
141
|
+
|
|
142
|
+
* `tmsAutomaticCreationTestCases` - mode of automatic creation test cases. Default value - false.
|
|
134
143
|
|
|
135
144
|
#### Examples
|
|
136
145
|
|
|
@@ -143,7 +152,7 @@ $ pytest --testit
|
|
|
143
152
|
Launch with command-line parameters:
|
|
144
153
|
|
|
145
154
|
```
|
|
146
|
-
$ pytest --testit --tmsUrl=<url> --tmsPrivateToken=<token> --tmsProjectId=<id> --tmsConfigurationId=<id> --tmsTestRunId=<optional id> --tmsTestRunName=<optional name> --tmsProxy='{"http":"http://localhost:8888","https":"http://localhost:8888"}' --tmsCertValidation=<optional boolean>
|
|
155
|
+
$ pytest --testit --tmsUrl=<url> --tmsPrivateToken=<token> --tmsProjectId=<id> --tmsConfigurationId=<id> --tmsTestRunId=<optional id> --tmsTestRunName=<optional name> --tmsProxy='{"http":"http://localhost:8888","https":"http://localhost:8888"}' --tmsCertValidation=<optional boolean> --tmsAutomaticCreationTestCases=<optional boolean>
|
|
147
156
|
```
|
|
148
157
|
|
|
149
158
|
If you want to enable debug mode then
|
|
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='testit-adapter-pytest',
|
|
5
|
-
version='2.1.
|
|
5
|
+
version='2.1.2',
|
|
6
6
|
description='Pytest adapter for Test IT',
|
|
7
7
|
long_description=open('README.md', "r").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
@@ -20,6 +20,6 @@ setup(
|
|
|
20
20
|
py_modules=['testit_adapter_pytest'],
|
|
21
21
|
packages=find_packages(where='src'),
|
|
22
22
|
package_dir={'': 'src'},
|
|
23
|
-
install_requires=['pytest', 'pytest-xdist', 'testit-python-commons==2.1.
|
|
23
|
+
install_requires=['pytest', 'pytest-xdist', 'testit-python-commons==2.1.2'],
|
|
24
24
|
entry_points={'pytest11': ['testit_adapter_pytest = testit_adapter_pytest.plugin']}
|
|
25
25
|
)
|
{testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest/plugin.py
RENAMED
|
@@ -87,6 +87,17 @@ def pytest_addoption(parser):
|
|
|
87
87
|
metavar="false",
|
|
88
88
|
help='Set custom name of configuration file'
|
|
89
89
|
)
|
|
90
|
+
parser.getgroup('testit').addoption(
|
|
91
|
+
'--tmsAutomaticCreationTestCases',
|
|
92
|
+
action="store",
|
|
93
|
+
dest="set_automatic_creation_test_cases",
|
|
94
|
+
metavar="false",
|
|
95
|
+
help="""
|
|
96
|
+
Set mode of automatic creation test cases (optional):
|
|
97
|
+
true - create a test case linked to the created autotest (not to the updated autotest)
|
|
98
|
+
false - not create a test case (Default)
|
|
99
|
+
"""
|
|
100
|
+
)
|
|
90
101
|
|
|
91
102
|
|
|
92
103
|
@pytest.mark.tryfirst
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: testit-adapter-pytest
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.2
|
|
4
4
|
Summary: Pytest adapter for Test IT
|
|
5
5
|
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
6
|
Author: Integration team
|
|
@@ -42,6 +42,7 @@ Description: # Test IT TMS adapter for Pytest
|
|
|
42
42
|
testRunName = <optional name>
|
|
43
43
|
adapterMode = <optional>
|
|
44
44
|
certValidation = <optional boolean>
|
|
45
|
+
automaticCreationTestCases = <optional boolean>
|
|
45
46
|
|
|
46
47
|
# This section are optional. It enables debug mode.
|
|
47
48
|
[debug]
|
|
@@ -82,7 +83,11 @@ Description: # Test IT TMS adapter for Pytest
|
|
|
82
83
|
* 1 - in this mode, the adapter sends all results to the test run without filtering.
|
|
83
84
|
* 2 - in this mode, the adapter creates a new test run and sends results to the new test run.
|
|
84
85
|
|
|
85
|
-
* `certValidation` - it enables/disables certificate validation.
|
|
86
|
+
* `certValidation` - it enables/disables certificate validation. Default value - true.
|
|
87
|
+
|
|
88
|
+
* `automaticCreationTestCases` - mode of automatic creation test cases. Default value - false. The adapter supports following modes:
|
|
89
|
+
* true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest).
|
|
90
|
+
* false - in this mode, the adapter will not create a test case.
|
|
86
91
|
|
|
87
92
|
* `tmsProxy` - it enables debug mode. `tmsProxy` is optional.
|
|
88
93
|
|
|
@@ -111,7 +116,9 @@ Description: # Test IT TMS adapter for Pytest
|
|
|
111
116
|
|
|
112
117
|
* `TMS_PROXY` - it enables debug mode. `TMS_PROXY` is optional.
|
|
113
118
|
|
|
114
|
-
* `TMS_CERT_VALIDATION` - it enables/disables certificate validation.
|
|
119
|
+
* `TMS_CERT_VALIDATION` - it enables/disables certificate validation. Default value - true.
|
|
120
|
+
|
|
121
|
+
* `TMS_AUTOMATIC_CREATION_TEST_CASES` - mode of automatic creation test cases. Default value - false.
|
|
115
122
|
|
|
116
123
|
#### Command line
|
|
117
124
|
|
|
@@ -138,7 +145,9 @@ Description: # Test IT TMS adapter for Pytest
|
|
|
138
145
|
|
|
139
146
|
* `tmsProxy` - it enables debug mode. `tmsProxy` is optional.
|
|
140
147
|
|
|
141
|
-
* `tmsCertValidation` - it enables/disables certificate validation.
|
|
148
|
+
* `tmsCertValidation` - it enables/disables certificate validation. Default value - true.
|
|
149
|
+
|
|
150
|
+
* `tmsAutomaticCreationTestCases` - mode of automatic creation test cases. Default value - false.
|
|
142
151
|
|
|
143
152
|
#### Examples
|
|
144
153
|
|
|
@@ -151,7 +160,7 @@ Description: # Test IT TMS adapter for Pytest
|
|
|
151
160
|
Launch with command-line parameters:
|
|
152
161
|
|
|
153
162
|
```
|
|
154
|
-
$ pytest --testit --tmsUrl=<url> --tmsPrivateToken=<token> --tmsProjectId=<id> --tmsConfigurationId=<id> --tmsTestRunId=<optional id> --tmsTestRunName=<optional name> --tmsProxy='{"http":"http://localhost:8888","https":"http://localhost:8888"}' --tmsCertValidation=<optional boolean>
|
|
163
|
+
$ pytest --testit --tmsUrl=<url> --tmsPrivateToken=<token> --tmsProjectId=<id> --tmsConfigurationId=<id> --tmsTestRunId=<optional id> --tmsTestRunName=<optional name> --tmsProxy='{"http":"http://localhost:8888","https":"http://localhost:8888"}' --tmsCertValidation=<optional boolean> --tmsAutomaticCreationTestCases=<optional boolean>
|
|
155
164
|
```
|
|
156
165
|
|
|
157
166
|
If you want to enable debug mode then
|
|
File without changes
|
|
File without changes
|
{testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest/__init__.py
RENAMED
|
File without changes
|
{testit-adapter-pytest-2.1.1 → testit-adapter-pytest-2.1.2}/src/testit_adapter_pytest/listener.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|