diff --git a/tox.ini b/tox.ini --- a/tox.ini +++ b/tox.ini @@ -1,38 +1,20 @@ [tox] envlist=flake8,mypy,py3 -[testenv:py3] +[testenv] deps = .[testing] pytest-cov pifpaf 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 \ --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 \ - {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] skip_install = true deps =