Skip to content

Commit 68ae081

Browse files
committed
2 parents 0ef7e05 + 6810ec7 commit 68ae081

2 files changed

Lines changed: 37 additions & 18 deletions

File tree

Makefile

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,49 @@
11
.PHONY: build shell test lint clean
22

3+
IMAGE_NAME = pytest-html-plus
4+
SRC_DIR = $(shell pwd)
5+
6+
# Mount local source into container — no rebuild needed on code changes
7+
DOCKER_RUN = docker run --rm \
8+
-v $(SRC_DIR):/app \
9+
-w /app \
10+
$(IMAGE_NAME)
11+
12+
DOCKER_RUN_REPORTS = docker run --rm \
13+
-v $(SRC_DIR):/app \
14+
-w /app \
15+
$(IMAGE_NAME)
16+
317
build:
4-
docker build -t pytest-html-plus .
18+
docker build -t $(IMAGE_NAME) .
519

620
build-with-dev-dependencies:
7-
docker build --build-arg INSTALL_DEV=true -t pytest-html-plus .
21+
docker build --build-arg INSTALL_DEV=true -t $(IMAGE_NAME) .
822

923
shell:
10-
docker run -it pytest-html-plus /bin/bash
24+
docker run -it \
25+
-v $(SRC_DIR):/app \
26+
-w /app \
27+
$(IMAGE_NAME) /bin/bash
1128

1229
test:
13-
docker run --rm pytest-html-plus poetry run pytest tests/unit --reruns 1
30+
poetry run pytest tests/unit --reruns 1
1431

1532
test-with-xdist:
16-
docker run --rm pytest-html-plus poetry run pytest tests/unit --reruns 1 -n auto
17-
18-
install-formatter:
19-
pip install pre-commit
20-
pre-commit install
33+
mkdir -p $(REPORTS_DIR)
34+
$(DOCKER_RUN_REPORTS) poetry run poetry run pytest tests/unit --reruns 1 -n auto
2135

2236
lint:
23-
docker run --rm pytest-html-plus poetry run ruff check .
37+
$(DOCKER_RUN) poetry run ruff check .
2438

2539
fix:
26-
docker run --rm pytest-html-plus poetry run ruff check . --fix
27-
docker run --rm pytest-html-plus poetry run ruff format .
40+
$(DOCKER_RUN) poetry run ruff check . --fix
41+
$(DOCKER_RUN) poetry run ruff format .
2842

43+
install-formatter:
44+
pip install pre-commit
45+
pre-commit install
2946

3047
clean:
31-
docker rmi pytest-html-plus
48+
docker rmi $(IMAGE_NAME)
49+
rm -rf $(REPORTS_DIR)

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ Export a fully merged JUnit XML report effortlessly — no external tools or plu
3939
✔ Works out-of-the-box with your test management tools (like TestRail, XRay, Zephyr)
4040
✔ Just one flag. No extra lines of code. Total traceability.
4141

42-
4342
![ScreenRecording2025-07-06at11 38 21PM-ezgif com-video-to-gif-converter](https://github.com/user-attachments/assets/02da5cc9-7ef5-4a3a-a475-88907964a9c6)
4443

44+
#### 🔄 Flaky Tests, Explained Visually
45+
Instantly see how a test behaved across retries — from failure to recovery. No guesswork, just clarity.
46+
47+
![ezgif com-video-to-gif-converter](https://github.com/user-attachments/assets/1f7e0cd8-d2f9-47fd-8909-6f12adf8a800)
48+
49+
4550
#### 🏷️ Tag your tests on the fly!
4651
With dynamic markers, you can assign tags like `api`, `critical`, or `slow` — or any custom label — at runtime using standard `pytest.mark.*`.
4752
No need for custom marker definitions. Perfect for smarter filtering, reporting, and analysis.
@@ -75,10 +80,6 @@ Just start typing, and the dashboard will instantly filter tests by:
7580

7681
![ScreenRecording2025-06-21at3 10 06PM-ezgif com-video-to-gif-converter](https://github.com/user-attachments/assets/f81c9a81-f98d-4151-ad7a-c1184cd199eb)
7782

78-
#### 🔄 Flaky Test Detection: Automatically flags flaky tests so you can spot and fix inconsistent failures quickly.
79-
80-
![ScreenRecording2025-06-21at2 37 31PM-ezgif com-video-to-gif-converter](https://github.com/user-attachments/assets/90f694bf-189c-45e1-8e1d-7acd2a975f91)
81-
8283
#### 📸 Screenshot Support: View screenshots directly in the report to understand failures faster.
8384

8485
#### 📧 Email Test Reports: Send your reports via email effortlessly using SendGrid integration.

0 commit comments

Comments
 (0)