pytest-html-plus 0.4.1__tar.gz → 0.4.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.
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/PKG-INFO +1 -1
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pyproject.toml +1 -1
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/json_to_xml_converter.py +13 -1
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/LICENSE +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/README.md +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/__init__.py +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/compute_filter_counts.py +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/compute_report_metadata.py +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/extract_link.py +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/generate_html_report.py +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/json_merge.py +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/plugin.py +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/resolver_driver.py +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/send_email_report.py +0 -0
- {pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pytest-html-plus
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Get started with rich pytest reports in under 3 seconds. Just install the plugin — no setup required. The simplest, fastest reporter for pytest.
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: pytest,pytest-html-plus,pytest-plugin,html-test-report,beautiful-test-report,shareable-test-results,test-report,test-results,unit-test-report,functional-test-report,test-summary,reporting,python-testing,automated-testing,test-runner,report-generator,continuous-integration,ci-cd,github-actions,jenkins,pytest-html,pytest-report
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "pytest-html-plus"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.2"
|
|
4
4
|
description = "Get started with rich pytest reports in under 3 seconds. Just install the plugin — no setup required. The simplest, fastest reporter for pytest."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = ["reporterplus"]
|
|
@@ -11,7 +11,19 @@ def sanitize_test_name(test):
|
|
|
11
11
|
|
|
12
12
|
def convert_json_to_junit_xml(json_path, xml_path):
|
|
13
13
|
with open(json_path, "r", encoding="utf-8") as f:
|
|
14
|
-
|
|
14
|
+
payload = json.load(f)
|
|
15
|
+
|
|
16
|
+
if not isinstance(payload, dict):
|
|
17
|
+
raise RuntimeError(f"Invalid report format: expected JSON object at top-level in {json_path}")
|
|
18
|
+
|
|
19
|
+
if "results" not in payload:
|
|
20
|
+
raise RuntimeError(f"Invalid report format: missing 'results' key in {json_path}")
|
|
21
|
+
|
|
22
|
+
test_results = payload["results"]
|
|
23
|
+
|
|
24
|
+
if not isinstance(test_results, list):
|
|
25
|
+
raise RuntimeError(f"Invalid report format: 'results' must be a list in {json_path}")
|
|
26
|
+
|
|
15
27
|
|
|
16
28
|
testsuite = ET.Element("testsuite", {
|
|
17
29
|
"name": "Test Suite",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_html_plus-0.4.1 → pytest_html_plus-0.4.2}/pytest_html_plus/compute_report_metadata.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|