Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=flake8,mypy,py3 | envlist=flake8,mypy,py3 | ||||
[testenv:py3] | [testenv] | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
pytest-cov | pytest-cov | ||||
pifpaf | pifpaf | ||||
commands = | commands = | ||||
pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast \ | pifpaf run postgresql -- pytest --doctest-modules \ | ||||
!slow: --hypothesis-profile=fast \ | |||||
slow: --hypothesis-profile=slow \ | |||||
prop: -m property_based \ | |||||
{envsitepackagesdir}/swh/indexer \ | {envsitepackagesdir}/swh/indexer \ | ||||
--cov={envsitepackagesdir}/swh/indexer \ | --cov={envsitepackagesdir}/swh/indexer \ | ||||
--cov-branch {posargs} | --cov-branch {posargs} | ||||
[testenv:py3-slow] | |||||
deps = | |||||
.[testing] | |||||
pytest-cov | |||||
pifpaf | |||||
commands = | |||||
pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=slow \ | |||||
{envsitepackagesdir}/swh/indexer \ | |||||
--cov={envsitepackagesdir}/swh/indexer \ | |||||
--cov-branch {posargs} | |||||
[testenv:py3-prop] | |||||
deps = | |||||
.[testing] | |||||
pytest-cov | |||||
pifpaf | |||||
commands = | |||||
pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast \ | |||||
-m property_based --disable-warnings \ | |||||
{envsitepackagesdir}/swh/indexer | |||||
[testenv:flake8] | [testenv:flake8] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
flake8 | flake8 | ||||
commands = | commands = | ||||
{envpython} -m flake8 | {envpython} -m flake8 | ||||
[testenv:mypy] | [testenv:mypy] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
mypy | mypy | ||||
commands = | commands = | ||||
mypy swh | mypy swh |