diff --git a/tox.ini b/tox.ini index 0ac0b93..0fb906b 100644 --- a/tox.ini +++ b/tox.ini @@ -10,8 +10,11 @@ envlist = pre-commit,pep8,py{36,37,38,39} isolated_build = true [testenv] -setenv = _PYTEST_SETUP_SKIP_APRSD_DEP=1 - coverage: _APRSD_TOX_CMD=coverage run -m pytest +description = Run unit-testing +setenv = + _PYTEST_SETUP_SKIP_APRSD_DEP=1 + PYTHONDONTWRITEBYTECODE=1 + PYTHONUNBUFFERED=1 usedevelop = True install_command = pip install {opts} {packages} extras = tests @@ -20,18 +23,10 @@ deps = coverage: coverage -r{toxinidir}/dev-requirements.txt pytestmain: git+https://github.com/pytest-dev/pytest.git@main commands = - {env:_APRSD_TOX_CMD:pytest} {posargs} + pytest -v --cov-report term-missing --cov=aprsd {posargs} coverage: coverage report -m coverage: coverage xml -[pytest] -minversion=2.0 -testpaths = tests -#--pyargs --doctest-modules --ignore=.tox -addopts=-r a -filterwarnings = - error - [testenv:docs] skip_install = true deps =