Skip to content

Commit 3bbf198

Browse files
committed
Simplify test commands in pyproject.toml
1 parent e48a027 commit 3bbf198

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +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"
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"
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)