diff --git a/README.md b/README.md index 9fdede2..cc7d5a8 100644 --- a/README.md +++ b/README.md @@ -202,9 +202,11 @@ $ pip install rexmex --upgrade **Running tests** +Tests can be run with `tox` with the following: + ```sh -$ pytest ./tests/unit -cov rexmex/ -$ pytest ./tests/integration -cov rexmex/ +$ pip install tox +$ tox -e py ``` -------------------------------------------------------------------------------- diff --git a/tox.ini b/tox.ini index cc9bb7d..7eef3f3 100644 --- a/tox.ini +++ b/tox.ini @@ -8,6 +8,13 @@ envlist = lint flake8 mypy + py + +[testenv:py] +commands = + pytest --cov rexmex +extras = + test [testenv:lint] deps =