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

Skip to content

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

Merged
merged 1 commit into from
Jul 7, 2017

Conversation

dims
Copy link
Collaborator

@dims dims commented Jul 5, 2017

nosetests output is not very useful for diagnosing issues when
running in travis. Let us switch to py.test

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 5, 2017
@dims dims force-pushed the wip-try-py.test branch 2 times, most recently from 6623962 to 1644082 Compare July 5, 2017 16:53
@dims dims changed the title [WIP] Trying py.test to see if we get better diagnostics Use py.test instead of nosetests for better problem reporting Jul 5, 2017
@@ -22,12 +22,12 @@ commands =
[testenv:py27-functional]
commands =
python -V
{toxinidir}/scripts/kube-init.sh nosetests -v []
Copy link
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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

@dims dims force-pushed the wip-try-py.test branch from 1644082 to 759e4b8 Compare July 5, 2017 17:23
@@ -1,5 +1,6 @@
coverage>=4.0.3
nose>=1.3.7
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

Copy link
Contributor

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).

nosetests output is not very useful for diagnosing issues when
running in travis. Let us switch to py.test
@dims dims force-pushed the wip-try-py.test branch from 759e4b8 to 19b6c89 Compare July 6, 2017 01:09
@mbohlool mbohlool merged commit 7fd6d55 into kubernetes-client:master Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants