Skip to content

Commit f741dd3

Browse files
authored
feat(py-tests): add support for pytest-html (kubeflow#1200)
Signed-off-by: syntaxsdev <[email protected]>
1 parent aa34fd5 commit f741dd3

File tree

3 files changed

+48
-8
lines changed

3 files changed

+48
-8
lines changed

clients/python/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test-e2e-run:
4141
poetry install --all-extras
4242
@echo "Running tests..."
4343
@set -a; . ../../scripts/manifests/minio/.env; set +a; \
44-
poetry run pytest --e2e -s -rA
44+
poetry run pytest --e2e -s -rA --html=report.html --self-contained-html
4545
@rm -f ../../scripts/manifests/minio/.env
4646

4747
.PHONY: test-e2e-cleanup

clients/python/poetry.lock

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

clients/python/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ eval-type-backport = "^0.2.0"
2828

2929
huggingface-hub = { version = ">=0.20.1,<0.33.0", optional = true }
3030
olot = { version = "^0.1.6", optional = true }
31-
boto3 = { version = "^1.37.34", optional = true }
31+
boto3 = { version = "^1.37.34", optional = true }
3232

3333
[tool.poetry.extras]
3434
hf = ["huggingface-hub"]
@@ -59,6 +59,7 @@ pytest-asyncio = ">=0.23.7,<0.27.0"
5959
requests = "^2.32.2"
6060
black = ">=24.4.2,<26.0.0"
6161
types-python-dateutil = "^2.9.0.20240906"
62+
pytest-html = "^4.1.1"
6263

6364
[tool.coverage.run]
6465
branch = true

0 commit comments

Comments
 (0)