Skip to content

Commit 13ac1fb

Browse files
robtaylorclaude
andcommitted
Add specific test commands for silicon.py coverage
- Added test-silicon command to run all silicon platform tests with coverage report in terminal - Added test-silicon-html command to generate HTML coverage report for silicon platform - Both commands measure coverage specifically for chipflow_lib.platforms.silicon module 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6e48d2e commit 13ac1fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ test.cmd = "pytest"
6262
test-docs.cmd = "sphinx-build -b doctest docs/ docs/_build"
6363
lint.cmd = "ruff check"
6464
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"
6567

6668

6769
[dependency-groups]
@@ -78,3 +80,8 @@ doc = [
7880
"sphinx-autoapi>=3.5.0",
7981
"sphinx>=7.3.7",
8082
]
83+
84+
[tool.pytest.ini_options]
85+
testpaths = [
86+
"tests",
87+
]

0 commit comments

Comments
 (0)