From e0e75149a9fb126f255c373bcba87c22b85ea22c Mon Sep 17 00:00:00 2001 From: Hemna Date: Tue, 7 Dec 2021 11:57:01 -0500 Subject: [PATCH] Updated pytest output This patch changes tox.ini to update the output for the unit test runs. --- tox.ini | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) 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 =