Skip to content

Commit 1828ebd

Browse files
committed
Speed up test suite with pytest-xdist parallelization
1 parent dd86ac7 commit 1828ebd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ matrix.deps.dependency-groups = [
172172

173173
[tool.hatch.envs.test.scripts]
174174
run-coverage = [
175-
"coverage run --source=src -m pytest --junitxml=junit.xml -o junit_family=legacy {args:}",
175+
"coverage run --source=src -m pytest -n auto --junitxml=junit.xml -o junit_family=legacy {args:}",
176176
"coverage xml",
177177
]
178178
run-coverage-html = [
179-
"coverage run --source=src -m pytest {args:}",
179+
"coverage run --source=src -m pytest -n auto {args:}",
180180
"coverage html",
181181
]
182-
run = "pytest --ignore tests/benchmarks"
182+
run = "pytest -n auto --ignore tests/benchmarks {args:}"
183183
run-verbose = "run-coverage --verbose"
184184
run-mypy = "mypy src"
185185
run-hypothesis = [

tests/test_api/test_synchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_docstrings_match(callable_name: str) -> None:
9393
),
9494
),
9595
],
96-
ids=str,
96+
ids=["store_path-create_array_group", "store_path-create", "array_params-create_array_dataset"],
9797
)
9898
def test_docstring_consistent_parameters(
9999
parameter_name: str, array_creation_routines: tuple[Callable[[Any], Any], ...]

0 commit comments

Comments
 (0)