Skip to content

Commit

Permalink
Use py.test instead of nosetests for better problem reporting (kubern…
Browse files Browse the repository at this point in the history
…etes-client#282)

nosetests output is not very useful for diagnosing issues when
running in travis. Let us switch to py.test
  • Loading branch information
dims authored and mbohlool committed Jul 7, 2017
1 parent bd4b72e commit 7fd6d55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
coverage>=4.0.3
nose>=1.3.7
pytest
pluggy>=0.3.1
py>=1.4.31
randomize>=0.13
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
python -V
nosetests -e e2e -v
py.test -vvv -s --ignore=kubernetes/e2e_test

[testenv:docs]
commands =
Expand All @@ -22,17 +22,17 @@ commands =
[testenv:py27-functional]
commands =
python -V
{toxinidir}/scripts/kube-init.sh nosetests -v []
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []

[testenv:py35-functional]
commands =
python -V
{toxinidir}/scripts/kube-init.sh nosetests -v []
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []

[testenv:py36-functional]
commands =
python -V
{toxinidir}/scripts/kube-init.sh nosetests -v []
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []

[testenv:coverage]
commands =
Expand Down

0 comments on commit 7fd6d55

Please sign in to comment.