Skip to content

Commit

Permalink
Updated tox to run coverage commands together.
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Dec 4, 2021
1 parent efd3b0e commit bf8229b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@ deps=
-r{toxinidir}/requirements.txt

commands=
coverage run --source=categories --omit='.tox/*,example/*,*/tests/*' {toxinidir}/example/manage.py test --settings='settings-testing' categories{posargs}
coverage erase
coverage run \
--source=categories \
--omit='.tox/*,example/*,*/tests/*' \
{toxinidir}/example/manage.py \
test \
--settings='settings-testing' \
categories{posargs}
coverage report -m
coverage html
codecov

[testenv:begin]
commands = coverage erase
Expand Down

0 comments on commit bf8229b

Please sign in to comment.