Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=black,flake8,mypy,py3-{core,db,server} | envlist=black,flake8,mypy,py3-{core,db,server} | ||||
[testenv] | [testenv] | ||||
passenv = PYTHONASYNCIODEBUG | passenv = PYTHONASYNCIODEBUG | ||||
extras = | extras = | ||||
testing-core | testing-core | ||||
core: logging | core: logging | ||||
db: db, testing-db | db: db, testing-db, db-pytestplugin | ||||
server: http | server: http | ||||
deps = | deps = | ||||
db: pifpaf | db: pifpaf | ||||
ardumont: Note for later: we are still using pifpaf and that's a tad annoying [1]
[1] when using tox or… | |||||
ardumontAuthorUnsubmitted Done Inline ActionsD4561 fixes it. ardumont: D4561 fixes it. | |||||
cover: pytest-cov | cover: pytest-cov | ||||
commands = | commands = | ||||
db: pifpaf run postgresql -- \ | db: pifpaf run postgresql -- \ | ||||
pytest --doctest-modules \ | pytest --doctest-modules \ | ||||
slow: --hypothesis-profile=slow \ | slow: --hypothesis-profile=slow \ | ||||
cover: --cov={envsitepackagesdir}/swh/core --cov-branch \ | cover: --cov={envsitepackagesdir}/swh/core --cov-branch \ | ||||
core: {envsitepackagesdir}/swh/core/tests \ | core: {envsitepackagesdir}/swh/core/tests \ | ||||
db: {envsitepackagesdir}/swh/core/db/tests \ | db: {envsitepackagesdir}/swh/core/db/tests \ | ||||
Show All 33 Lines |
Note for later: we are still using pifpaf and that's a tad annoying [1]
[1] when using tox or pytest, that needs the postgresql.service to be running (otherwise fails) but when using docker, you need to stop the postgresql.service... ¯\_(ツ)_/¯