Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Run test suite with python-testdox for more verbose output (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
pronovic authored Feb 27, 2021
1 parent 5142197 commit b8c8ac7
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .toxrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ commands =
poetry --version
poetry version
poetry run coverage erase
poetry run coverage run -m pytest tests
poetry run coverage run -m pytest --force-testdox --color=no tests
poetry run coverage report

[testenv:docs]
Expand Down
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.1.20 unreleased

* Run test suite with python-testdox for more verbose output.

Version 0.1.19 17 Feb 2021

* Standardize the format of the Apache v2 statement in LICENSE.
Expand Down
17 changes: 9 additions & 8 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
alabaster==0.7.12; python_version >= "3.6"
apologies==0.1.31; python_version >= "3.7" and python_version < "4"
apologies==0.1.33; python_version >= "3.7" and python_version < "4"
appdirs==1.4.4; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
astroid==2.4.2; python_version >= "3.6"
asyncio-periodic==2019.2
Expand All @@ -8,7 +8,7 @@ atomicwrites==1.4.0; python_version >= "3.6" and python_full_version < "3.0.0" a
attrs==20.3.0; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_version >= "3.7" and python_version < "4" and python_full_version >= "3.4.0"
babel==2.9.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
black==20.8b1; python_version >= "3.6"
cattrs==1.2.0; python_version >= "3.7" and python_version < "4.0"
cattrs==1.3.0; python_version >= "3.7" and python_version < "4.0"
certifi==2020.12.5; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.5"
cfgv==3.2.0; python_full_version >= "3.6.1"
chardet==4.0.0; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.5"
Expand All @@ -21,10 +21,10 @@ docopt==0.6.2; python_version >= "3.5"
docutils==0.16; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
dparse==0.5.1; python_version >= "3.5"
filelock==3.0.12; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
identify==1.5.13; python_full_version >= "3.6.1"
identify==1.5.14; python_full_version >= "3.6.1"
idna==2.10; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.5"
imagesize==1.2.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
importlib-metadata==3.4.0; python_version < "3.8" and python_version >= "3.6" and (python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "3.8" or python_full_version >= "3.5.0" and python_version < "3.8" and python_version >= "3.6") and python_full_version >= "3.6.1" and (python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "3.8" or python_full_version >= "3.4.0" and python_version >= "3.6" and python_version < "3.8")
importlib-metadata==3.7.0; python_version < "3.8" and python_version >= "3.6" and (python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "3.8" or python_full_version >= "3.5.0" and python_version < "3.8" and python_version >= "3.6") and python_full_version >= "3.6.1" and (python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "3.8" or python_full_version >= "3.4.0" and python_version >= "3.6" and python_version < "3.8")
iniconfig==1.1.1; python_version >= "3.6"
isort==5.7.0; python_version >= "3.6" and python_version < "4.0"
jinja2==2.11.3; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
Expand All @@ -42,10 +42,11 @@ pendulum==2.1.2; python_version >= "3.7" and python_full_version < "3.0.0" and p
pluggy==0.13.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
pre-commit==2.10.1; python_full_version >= "3.6.1"
py==1.10.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
pygments==2.7.4; python_version >= "3.6"
pylint==2.6.0; python_version >= "3.5"
pygments==2.8.0; python_version >= "3.6"
pylint==2.6.2; python_version >= "3.5"
pyparsing==2.4.7; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
pytest-asyncio==0.12.0; python_version >= "3.5"
pytest-testdox==2.0.1; python_version >= "3.5"
pytest==6.2.2; python_version >= "3.6"
python-dateutil==2.8.1; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_version >= "3.7" and python_version < "4" and python_full_version >= "3.5.0"
pytz==2021.1; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.5"
Expand All @@ -57,15 +58,15 @@ safety==1.10.3; python_version >= "3.5"
six==1.15.0; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_full_version >= "3.5.0" and python_version >= "3.7" and python_version < "4"
snowballstemmer==2.1.0; python_version >= "3.6"
sphinx-autoapi==1.7.0; python_version >= "3.6"
sphinx==3.4.3; python_version >= "3.5"
sphinx==3.5.1; python_version >= "3.5"
sphinxcontrib-applehelp==1.0.2; python_version >= "3.6"
sphinxcontrib-devhelp==1.0.2; python_version >= "3.6"
sphinxcontrib-htmlhelp==1.0.3; python_version >= "3.6"
sphinxcontrib-jsmath==1.0.1; python_version >= "3.6"
sphinxcontrib-qthelp==1.0.3; python_version >= "3.6"
sphinxcontrib-serializinghtml==1.1.4; python_version >= "3.6"
toml==0.10.2; (python_version >= "2.6" and python_full_version < "3.0.0") or (python_full_version >= "3.3.0")
tox==3.21.4; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
tox==3.22.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
typed-ast==1.4.2; implementation_name == "cpython" and python_version < "3.8" and python_version >= "3.6"
typing-extensions==3.7.4.3; python_version < "3.8" and python_version >= "3.6"
unidecode==1.2.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
Expand Down
71 changes: 43 additions & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ ordered-set = "^4.0.1"

[tool.poetry.dev-dependencies]
pytest = "^6.2"
pytest-testdox = "^2.0.1"
coverage = "^5.0.3"
tox = "^3.14.5"
pylint = "^2.6.0"
pylint = ">=2.6.0,<2.7" # bug with astroid and OrderedSet
sphinx = "^3.4.3"
toml = "^0.10.0"
pre-commit = "^2.2.0"
Expand Down
4 changes: 2 additions & 2 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ run_pytest() {
fi

if [ $coverage == "yes" ]; then
poetry run coverage run -m pytest tests
poetry run coverage run -m pytest --testdox tests
if [ $? != 0 ]; then
exit 1
fi
Expand All @@ -154,7 +154,7 @@ run_pytest() {
$(which start || which open) .htmlcov/index.html 2>/dev/null # start on Windows, open on MacOS
fi
else
poetry run pytest tests
poetry run pytest --testdox tests
if [ $? != 0 ]; then
exit 1
fi
Expand Down

0 comments on commit b8c8ac7

Please sign in to comment.