Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 759e4b8

Browse files
committed
Use py.test instead of nosetests for better problem reporting
nosetests output is not very useful for diagnosing issues when running in travis. Let us switch to py.test
1 parent 5e268fb commit 759e4b8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
coverage>=4.0.3
22
nose>=1.3.7
3+
pytest
34
pluggy>=0.3.1
45
py>=1.4.31
56
randomize>=0.13

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ deps = -r{toxinidir}/test-requirements.txt
99
-r{toxinidir}/requirements.txt
1010
commands =
1111
python -V
12-
nosetests -e e2e -v
12+
py.test -vvv -s --ignore=kubernetes/e2e_test
1313

1414
[testenv:docs]
1515
commands =
@@ -22,17 +22,17 @@ commands =
2222
[testenv:py27-functional]
2323
commands =
2424
python -V
25-
{toxinidir}/scripts/kube-init.sh nosetests -v []
25+
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []
2626

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

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

3737
[testenv:coverage]
3838
commands =

0 commit comments

Comments
 (0)