Skip to content

Commit

Permalink
chore(scripts): allow passing 'pytest' arguments to './script/test'
Browse files Browse the repository at this point in the history
Example: ./scripts/test -k 'test_commit_when_' --no-cov
---

Signed-off-by: Adrian DC <[email protected]>
  • Loading branch information
AdrianDC committed Aug 16, 2024
1 parent 72c6ea4 commit 81cf342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
export PREFIX='poetry run python -m '
export REGEX='^(?![.]|venv).*'

${PREFIX}pytest -n 3 --dist=loadfile --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen tests/
${PREFIX}pytest -n 3 --dist=loadfile --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen "${@}" tests/
${PREFIX}ruff check commitizen/ tests/ --fix
${PREFIX}mypy commitizen/ tests/
${PREFIX}commitizen -nr 3 check --rev-range origin/master..

0 comments on commit 81cf342

Please sign in to comment.