Skip to content
Snippets Groups Projects
Commit dcb6353c authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

tox.ini: use "develop" mode for test environment installation

In combination with the Pytest 8.1 changes for namespace package
support, this allows us to get rid of the envsitepackagesdir hacks,
which makes the output of all tools much more useful.
parent dd1e89ab
No related branches found
Tags v0.1.2
1 merge request!39tox.ini: use "develop" mode for test environment installation
Pipeline #7959 passed
......@@ -7,20 +7,17 @@ envlist =
py3
[testenv]
usedevelop = true
extras =
testing
deps =
pytest-cov
commands =
pytest --doctest-modules \
--rootdir {envsitepackagesdir} \
--cov={envsitepackagesdir}/{{ package_root }} \
--cov={{ package_root }} \
--cov-branch \
{envsitepackagesdir}/{{ package_root }} \
{{ package_root }} \
{posargs}
# --rootdir (with --import-mode from pytest.ini) are required to make tests
# that depends on the test file to be a proper submodule of the swh namespace
# after migration to PEP420 (implicit namespace).
[testenv:black]
skip_install = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment