Skip to content
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

--verbose should report why a test case was skipped #157

Closed
pytestbot opened this issue Jun 8, 2012 · 5 comments
Closed

--verbose should report why a test case was skipped #157

pytestbot opened this issue Jun 8, 2012 · 5 comments
Labels
type: enhancement new feature or API change, should be merged into features branch

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Leah Klearman (BitBucket: klrmn, GitHub: klrmn)


I'm glad that py.test is now putting 's'es into results when it skips a test but it would be nice to know if it's because it's a @pytest.mark.destructive test, excluded due to a -m "not X", or explicitly weeded out by a py.test plugin and given py.test.skip("message"). I would imagine the message text would be provided when using --verbose.

Thanks!


@pytestbot
Copy link
Contributor Author

Original comment by Torsten Landschoff (BitBucket: bluehorn, GitHub: bluehorn):


Just a hint: We are using

#!sh

py.test -v -rs

which prints the reason for skipping the tests in a summary at the end of its output.

@pytestbot
Copy link
Contributor Author

Original comment by Bruno Oliveira (BitBucket: nicoddemus, GitHub: nicoddemus):


Hi @klrmn,

Is using -rs satisfactory? Can we close this issue?

@pytestbot
Copy link
Contributor Author

Original comment by Leah Klearman (BitBucket: klrmn, GitHub: klrmn):


i'm not actually still using pytest, so if nobody else has spoken up, you
can close it.

@pytestbot
Copy link
Contributor Author

Original comment by Bruno Oliveira (BitBucket: nicoddemus, GitHub: nicoddemus):


OK, thanks

@pytestbot
Copy link
Contributor Author

Original comment by Bruno Oliveira (BitBucket: nicoddemus, GitHub: nicoddemus):


Option -rs does the job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement new feature or API change, should be merged into features branch
Projects
None yet
Development

No branches or pull requests

1 participant