-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Use py.test instead of nosetests for better problem reporting #282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = | ||
|
@@ -22,17 +22,17 @@ commands = | |
[testenv:py27-functional] | ||
commands = | ||
python -V | ||
{toxinidir}/scripts/kube-init.sh nosetests -v [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why only these two e2e tests? what about py36-functional and non-e2e tests? can we use py.test for those too? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Switched them all except for coverage. Let's wait on that one to see if it runs into trouble |
||
{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 = | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, testenv:coverage still uses both coverage and nose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. this looks good, can you rebase your branch so I can merge it? (the branch is out of date).