Skip to content

Commit 0685a2f

Browse files
authored
v0.5.2 (#225)
* Make attempt level traces and logs collapsed by default (#223) * 222 bug flaky attempts must be collapsible by default (#224) * Make attempt level traces and logs collapsed by default * Grouped dev dependencies
1 parent 63032ce commit 0685a2f

4 files changed

Lines changed: 75 additions & 51 deletions

File tree

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ test:
3030
poetry run pytest tests/unit --reruns 1
3131

3232
test-with-xdist:
33-
mkdir -p $(REPORTS_DIR)
3433
$(DOCKER_RUN_REPORTS) poetry run poetry run pytest tests/unit --reruns 1 -n auto
3534

3635
lint:

poetry.lock

Lines changed: 62 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pytest-html-plus"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
description = "Generate Actionable, automatic screenshots, unified Mobile friendly Pytest HTML report in less than 3 seconds — no hooks, merge plugins, no config, xdist-ready."
55
readme = "README.md"
66
authors = ["reporterplus"]
@@ -42,9 +42,6 @@ urls.Documentation = "https://pytest-html-plus.readthedocs.io"
4242
python = ">=3.10,<4.0"
4343
yagmail = ">=0.15.293,<0.16.0"
4444
keyring = ">=25.6.0,<26.0.0"
45-
black = "^26.1.0"
46-
isort = "^8.0.0"
47-
pre-commit = "^4.5.1"
4845

4946
[tool.poetry.group.dev.dependencies]
5047
pytest-rerunfailures = "^15.1"
@@ -56,6 +53,9 @@ pytest-xdist = "^3.8.0"
5653
selenium = "^4.8.0"
5754
webdriver-manager = "^3.8.5"
5855
ruff = "^0.15.2"
56+
black = "^26.3.1"
57+
isort = "^8.0.1"
58+
pre-commit = "^4.5.1"
5959

6060
[build-system]
6161
requires = ["poetry-core"]

pytest_html_plus/generate_html_report.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -862,11 +862,15 @@ def generate_html_report(self):
862862
)
863863

864864
attempts_html += f"""
865-
<div style="margin-top:8px; padding:8px; border:1px solid #ddd; border-radius:4px;">
866-
<div><strong>Attempt {i} {status_icon}</strong></div>
867-
{error_block}
868-
{trace_block}
869-
</div>
865+
<details style="margin-top:8px; border:1px solid #ddd; border-radius:4px; padding:6px;">
866+
<summary style="cursor:pointer;">
867+
<strong>Attempt {i} {status_icon}</strong>
868+
</summary>
869+
<div style="margin-top:8px;">
870+
{error_block}
871+
{trace_block}
872+
</div>
873+
</details>
870874
"""
871875

872876
attempts_html += "</div>"

0 commit comments

Comments
 (0)