Skip to content

Commit

Permalink
Update tox to allow running a subset of tests through positional args.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Jul 3, 2024
1 parent 530ab00 commit 2d750fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ commands =
sh -c 'kolibri manage makemigrations --check'
python test/patch_pytest.py
# Run the actual tests
python -O -m pytest {posargs:--cov=kolibri --cov-report= --cov-append --color=no} kolibri
python -O -m pytest {posargs:kolibri --cov=kolibri --cov-report= --cov-append --color=no}
python -O -m pytest {posargs:--cov=kolibri --cov-report= --cov-append --color=no} -p no:django test
# Fail if the log is longer than 200 lines (something erroring or very noisy got added)
sh -c "if [ `cat {env:KOLIBRI_HOME}/logs/kolibri.txt | wc -l` -gt 200 ] ; then echo 'Log too long' && echo '' && tail -n 20 {env:KOLIBRI_HOME}/logs/kolibri.txt && exit 1 ; fi"
Expand All @@ -52,5 +52,5 @@ deps =
-r{toxinidir}/requirements/cext.txt
-r{toxinidir}/requirements/postgres.txt
commands =
python -O -m pytest {posargs:--cov=kolibri --cov-report= --cov-append --color=no} kolibri
python -O -m pytest {posargs:kolibri --cov=kolibri --cov-report= --cov-append --color=no}
python -O -m pytest {posargs:--cov=kolibri --cov-report= --cov-append --color=no} -p no:django test

0 comments on commit 2d750fe

Please sign in to comment.