Skip to content

Commit bde4bdc

Browse files
committed
test(scripts): run same file tests individually
Running tests concurrently can cause temporary files, such as the file used to backup the commit message, to be deleted by one test but accessed by another test later on.
1 parent af7a3e3 commit bde4bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scripts/test

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
export PREFIX='poetry run python -m '
55
export REGEX='^(?![.]|venv).*'
66

7-
${PREFIX}pytest -n 3 --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen tests/
7+
${PREFIX}pytest -n 3 --dist=loadfile --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen tests/
88
${PREFIX}black commitizen tests --check
99
${PREFIX}isort --check-only commitizen tests
1010
${PREFIX}flake8 commitizen/ tests/

0 commit comments

Comments
 (0)