Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0e0a012

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 a42531b commit 0e0a012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)