Skip to content

Commit

Permalink
Update local testing instructions to use tox
Browse files Browse the repository at this point in the history
Tox is much more reproducible for tests as it also handles installing all package and testing requirements
  • Loading branch information
cthoyt committed Jan 4, 2022
1 parent 6b1abb5 commit 4f0815a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -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
```

--------------------------------------------------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Expand Up @@ -8,6 +8,13 @@ envlist =
lint
flake8
mypy
py

[testenv:py]
commands =
pytest --cov rexmex
extras =
test

[testenv:lint]
deps =
Expand Down

0 comments on commit 4f0815a

Please sign in to comment.