diff --git a/tox.ini b/tox.ini index 8bc693c..fb80d5b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,33 +1,41 @@ [tox] envlist=flake8,py3 [testenv:py3] deps = .[testing] pytest-cov pifpaf commands = - pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast --cov=swh --cov-branch {posargs} + pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast \ + {envsitepackagesdir}/swh/indexer \ + --cov={envsitepackagesdir}/swh/indexer \ + --cov-branch {posargs} [testenv:py3-slow] deps = .[testing] pytest-cov pifpaf commands = - pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=slow --cov=swh --cov-branch {posargs} + 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 + pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast \ + -m property_based --disable-warnings \ + {envsitepackagesdir}/swh/indexer [testenv:flake8] skip_install = true deps = flake8 commands = {envpython} -m flake8