Merge pull request #232 from pylast/py.test-to-pytest

pytest is recommended entry point
This commit is contained in:
Hugo 2017-10-28 10:28:31 +03:00 committed by GitHub
commit 0d8812caca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -93,17 +93,17 @@ export PYLAST_API_SECRET=TODO_ENTER_YOURS_HERE
To run all unit and integration tests:
```sh
pip install pytest flaky mock
py.test
pytest
```
Or run just one test case:
```sh
py.test -k test_scrobble
pytest -k test_scrobble
```
To run with coverage:
```sh
py.test -v --cov pylast --cov-report term-missing
pytest -v --cov pylast --cov-report term-missing
coverage report # for command-line report
coverage html # for HTML report
open htmlcov/index.html

View file

@ -15,7 +15,7 @@ deps =
ipdb
pytest-cov
flaky
commands = py.test -v -s -W all --cov pylast --cov-report term-missing {posargs}
commands = pytest -v -s -W all --cov pylast --cov-report term-missing {posargs}
[testenv:venv]
deps = ipdb