Skip to content

Commit ef87ca1

Browse files
robtaylorclaude
andcommitted
Simplify test commands in pyproject.toml
- Refactored test coverage commands to be more consistent - Added test-cov for terminal coverage report of entire codebase - Added test-cov-html for HTML coverage report of entire codebase - Kept test-silicon command specifically for silicon module testing - All commands now work correctly with appropriate coverage reporting 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 13ac1fb commit ef87ca1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ ignore = ['F403', 'F405']
5757
source = "scm"
5858

5959
[tool.pdm.scripts]
60-
test-cov.cmd = "pytest --cov=chipflow_lib --cov-report=html"
6160
test.cmd = "pytest"
61+
test-cov.cmd = "pytest --cov=chipflow_lib --cov-report=term"
62+
test-cov-html.cmd = "pytest --cov=chipflow_lib --cov-report=html"
6263
test-docs.cmd = "sphinx-build -b doctest docs/ docs/_build"
6364
lint.cmd = "ruff check"
6465
docs.cmd = "sphinx-build docs/ docs/_build/ -W --keep-going"
65-
test-silicon.cmd = "python -m pytest tests/test_silicon_platform.py tests/test_silicon_platform_additional.py tests/test_silicon_platform_amaranth.py tests/test_silicon_platform_build.py tests/test_silicon_platform_port.py --cov=chipflow_lib.platforms.silicon --cov-report=term"
66-
test-silicon-html.cmd = "python -m pytest tests/test_silicon_platform.py tests/test_silicon_platform_additional.py tests/test_silicon_platform_amaranth.py tests/test_silicon_platform_build.py tests/test_silicon_platform_port.py --cov=chipflow_lib.platforms.silicon --cov-report=html"
66+
test-silicon.cmd = "pytest tests/test_silicon_platform.py tests/test_silicon_platform_additional.py tests/test_silicon_platform_amaranth.py tests/test_silicon_platform_build.py tests/test_silicon_platform_port.py --cov=chipflow_lib.platforms.silicon --cov-report=term"
6767

6868

6969
[dependency-groups]

0 commit comments

Comments
 (0)