Using pytest from now on

This commit is contained in:
Sergey Petrov
2019-06-02 19:39:40 +03:00
parent fbcf36f955
commit be7438a653
9 changed files with 207 additions and 230 deletions
+4 -5
View File
@@ -54,19 +54,18 @@ cd PyAPNs2
# Create a virtualenv and install dependencies.
virtualenv venv
. venv/bin/activate
pip install -e .
pip install -e .[tests]
```
To run the tests:
```shell
pip install -r requirements-dev.txt
python -m unittest discover test
pytest
```
You can use `tox` for running tests with all supported Python versions:
```shell
pyenv install 2.7.15; pyenv install 3.4.9; pyenv install 3.5.6; pyenv install 3.6.7; pyenv install 3.7.1
pyenv local 3.7.1 3.6.7 3.5.6 3.4.9 2.7.15
pyenv install 3.5.6; pyenv install 3.6.7; pyenv install 3.7.1
pyenv local 3.7.1 3.6.7 3.5.6
pip install tox
tox
```