Skip to content

Commit cc79c7e

Browse files
Update to parallelize tests with pytest-xdist. (#6)
1 parent b5e2bf0 commit cc79c7e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ pre-commit==3.3.3
55
pydocstyle==6.3.0
66
pylint==2.17.4
77
pytest==7.4.0
8+
pytest-xdist[psutil]==3.3.1

tests/run_pytest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ def run_pytest() -> int:
1010
return run(
1111
args=(
1212
"pytest",
13-
"--verbose",
13+
"--numprocesses=auto",
14+
"--durations=0",
15+
"--verbosity=2",
1416
Path(__file__).resolve().parent,
1517
),
1618
check=False,

0 commit comments

Comments
 (0)