Skip to content

Commit f60e11c

Browse files
tomschrscls19fr
authored andcommitted
Fix #145: add posargs in tox.ini (single test cases) (#146)
Fix #146: improve tox.ini/.travis.yml * Changes in tox.ini: * add posargs for pytest. This allows to run only a single test function. * Rename py.test -> pytest as the old spelling py.test will be deprecated in the future. * Changes in .travis.yml: * Add cache for pip to speed up things a little bit * Add tox as a installation requirement * Replace setup.py with tox as it discouraged in https://tox.readthedocs.io/en/latest/example/basic.html#integration-with-setup-py-test-command
1 parent ecb0736 commit f60e11c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
# config file for automatic testing at travis-ci.org
12
language: python
3+
cache: pip
24
install:
35
- pip install --upgrade pip setuptools
4-
- pip install virtualenv
5-
script: python setup.py test
6+
- pip install virtualenv tox
7+
script: tox -v
68
matrix:
79
include:
810
- python: "2.7"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ envlist =
55
pypy
66

77
[testenv]
8-
commands = py.test
8+
commands = pytest {posargs:}
99
deps =
1010
pytest
1111
pytest-cov

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy