We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a7f7d3 commit 9e195cfCopy full SHA for 9e195cf
pyproject.toml
@@ -26,6 +26,7 @@ test = [
26
'pytest-cov',
27
'pytest',
28
'pytest-asyncio',
29
+ 'pytest-xdist',
30
'tqdm',
31
]
32
script/test.sh
@@ -19,7 +19,12 @@ test_go() {
19
}
20
21
test_python() {
22
- .venv/bin/pytest "$@" -vv
+ # Only add -n auto if -n isn't already specified (supports -n <digits> or -n auto)
23
+ if [[ ! "$*" =~ -n[[:space:]]*([[:digit:]]+|auto) ]]; then
24
+ .venv/bin/pytest "$@" -vv -n auto
25
+ else
+ .venv/bin/pytest "$@" -vv
+ fi
if [ $# -eq 0 ]; then
0 commit comments