From 53777e315e1c64f496929cbfb5ba74dd868681cf Mon Sep 17 00:00:00 2001 From: tsukumi Date: Mon, 23 Sep 2024 11:39:10 +0900 Subject: [PATCH] Fix: Log in real time during pytest execution --- .gitignore | 2 +- pyproject.toml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 4c0b11b..9e2934f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ __pycache__/ venv/ .venv/ dist/ -.coverage +.coverage* .ipynb_checkpoints/ .ruff_cache/ diff --git a/pyproject.toml b/pyproject.toml index 2d5ad38..7ba547f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,11 +81,11 @@ dependencies = [ features = ["torch"] [tool.hatch.envs.test.scripts] # Usage: `hatch run test:test` -test = "pytest tests/test_main.py::test_synthesize_cpu" +test = "pytest -s tests/test_main.py::test_synthesize_cpu" # Usage: `hatch run test:test-cuda` -test-cuda = "pytest tests/test_main.py::test_synthesize_cuda" +test-cuda = "pytest -s tests/test_main.py::test_synthesize_cuda" # Usage: `hatch run test:coverage` -test-cov = "coverage run -m pytest tests/test_main.py::test_synthesize_cpu" +test-cov = "coverage run -m pytest -s tests/test_main.py::test_synthesize_cpu" # Usage: `hatch run test:cov-report` cov-report = ["- coverage combine", "coverage report"] # Usage: `hatch run test:cov` @@ -104,13 +104,13 @@ dependencies = [ ] [tool.hatch.envs.test-onnx.scripts] # Usage: `hatch run test-onnx:test` -test = "pytest tests/test_main.py::test_synthesize_onnx_cpu" +test = "pytest -s tests/test_main.py::test_synthesize_onnx_cpu" # Usage: `hatch run test-onnx:test-cuda` -test-cuda = "pytest tests/test_main.py::test_synthesize_onnx_cuda" +test-cuda = "pytest -s tests/test_main.py::test_synthesize_onnx_cuda" # Usage: `hatch run test-onnx:test-directml` -test-directml = "pytest tests/test_main.py::test_synthesize_onnx_directml" +test-directml = "pytest -s tests/test_main.py::test_synthesize_onnx_directml" # Usage: `hatch run test-onnx:coverage` -test-cov = "coverage run -m pytest tests/test_main.py::test_synthesize_onnx_cpu" +test-cov = "coverage run -m pytest -s tests/test_main.py::test_synthesize_onnx_cpu" # Usage: `hatch run test-onnx:cov-report` cov-report = ["- coverage combine", "coverage report"] # Usage: `hatch run test-onnx:cov`