pytest-plugins 0.1.28__tar.gz → 0.2.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.
- {pytest_plugins-0.1.28/pytest_plugins.egg-info → pytest_plugins-0.2.0}/PKG-INFO +2 -1
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/README.md +1 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/better_report.py +8 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0/pytest_plugins.egg-info}/PKG-INFO +2 -1
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/setup.py +1 -1
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/LICENSE +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/MANIFEST.in +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pyproject.toml +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/__init__.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/add_config_parameters.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/fail2skip.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/max_fail_streak.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/models/__init__.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/models/base_class_test.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/models/environment_data.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/models/execution_data.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/models/status.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/models/test_data.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/utils/__init__.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/utils/create_report.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/utils/helper.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins/utils/pytest_helper.py +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins.egg-info/SOURCES.txt +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins.egg-info/dependency_links.txt +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins.egg-info/entry_points.txt +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins.egg-info/requires.txt +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/pytest_plugins.egg-info/top_level.txt +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/requirements.txt +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/setup.cfg +0 -0
- {pytest_plugins-0.1.28 → pytest_plugins-0.2.0}/tests/test_dummy.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-plugins
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: A Python package for managing pytest plugins.
|
|
5
5
|
Home-page: https://github.com/aviz92/pytest-plugins
|
|
6
6
|
Author: Avi Zaguri
|
|
@@ -46,6 +46,7 @@ generate `execution_results.json`, `test_results.json`, and `test_report`.md und
|
|
|
46
46
|
- `--mr-number`: Include a merge request number in the report for better traceability.
|
|
47
47
|
- `--add-parameters`: Add the test parameters as fields to the test results.
|
|
48
48
|
- `--pytest-command`: Add the detailed information about the pytest command-line to the "execution_results.json" file
|
|
49
|
+
- `--verbose-param-ids`: Include parameter names in pytest test IDs (e.g., `test_name[param1: value1, param2: value2]` instead of `test_name[param1-param2])`
|
|
49
50
|
<br> <br>
|
|
50
51
|
- ✅ **maxfail-streak**: Stop test execution after a configurable number of consecutive failures.
|
|
51
52
|
- flags:
|
|
@@ -15,6 +15,7 @@ generate `execution_results.json`, `test_results.json`, and `test_report`.md und
|
|
|
15
15
|
- `--mr-number`: Include a merge request number in the report for better traceability.
|
|
16
16
|
- `--add-parameters`: Add the test parameters as fields to the test results.
|
|
17
17
|
- `--pytest-command`: Add the detailed information about the pytest command-line to the "execution_results.json" file
|
|
18
|
+
- `--verbose-param-ids`: Include parameter names in pytest test IDs (e.g., `test_name[param1: value1, param2: value2]` instead of `test_name[param1-param2])`
|
|
18
19
|
<br> <br>
|
|
19
20
|
- ✅ **maxfail-streak**: Stop test execution after a configurable number of consecutive failures.
|
|
20
21
|
- flags:
|
|
@@ -73,6 +73,12 @@ def pytest_addoption(parser: Parser) -> None:
|
|
|
73
73
|
default=None,
|
|
74
74
|
help='Add the detailed information about the pytest command-line to the "execution_results.json" file'
|
|
75
75
|
)
|
|
76
|
+
parser.addoption(
|
|
77
|
+
"--verbose-param-ids",
|
|
78
|
+
action="store_true",
|
|
79
|
+
default=None,
|
|
80
|
+
help="Include parameter names in pytest test IDs (e.g., test_name[param1=value1,param2=value2] instead of test_name[param1,value1,param2,value2])"
|
|
81
|
+
)
|
|
76
82
|
|
|
77
83
|
|
|
78
84
|
def pytest_configure(config: Config) -> None:
|
|
@@ -134,6 +140,8 @@ def pytest_collection_modifyitems(config: Config, items: list[Function]) -> None
|
|
|
134
140
|
)
|
|
135
141
|
if getattr(item, 'callspec', None) and config.getoption('--add-parameters'):
|
|
136
142
|
test_results[test_full_name].__dict__.update(**item.callspec.params)
|
|
143
|
+
if config.getoption('--verbose-param-ids'):
|
|
144
|
+
item._nodeid = f"{item.fspath.basename}::{test_full_name}"
|
|
137
145
|
logger.debug(f'Tests to be executed: \n{json.dumps(list(test_results.keys()), indent=4, default=serialize_data)}')
|
|
138
146
|
time.sleep(0.3) # Sleep to ensure the debug log is printed before the tests start
|
|
139
147
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-plugins
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: A Python package for managing pytest plugins.
|
|
5
5
|
Home-page: https://github.com/aviz92/pytest-plugins
|
|
6
6
|
Author: Avi Zaguri
|
|
@@ -46,6 +46,7 @@ generate `execution_results.json`, `test_results.json`, and `test_report`.md und
|
|
|
46
46
|
- `--mr-number`: Include a merge request number in the report for better traceability.
|
|
47
47
|
- `--add-parameters`: Add the test parameters as fields to the test results.
|
|
48
48
|
- `--pytest-command`: Add the detailed information about the pytest command-line to the "execution_results.json" file
|
|
49
|
+
- `--verbose-param-ids`: Include parameter names in pytest test IDs (e.g., `test_name[param1: value1, param2: value2]` instead of `test_name[param1-param2])`
|
|
49
50
|
<br> <br>
|
|
50
51
|
- ✅ **maxfail-streak**: Stop test execution after a configurable number of consecutive failures.
|
|
51
52
|
- flags:
|
|
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
|