Skip to content

pytest.ini: add -ra to addopts #6918

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

Closed
wants to merge 1 commit into from

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Jun 1, 2019

This displays a short test summary, which is very useful.

This displays a short test summary, which is very useful.
Copy link
Member

@emmatyping emmatyping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine. Maybe it will help accomplish a long time goal for us to have the tests skipped listed in a nicer format :)

@JukkaL
Copy link
Collaborator

JukkaL commented Jun 3, 2019

It's not clear to me how the test summary is useful. Can you give an example from the mypy test suite where this provides useful information?

@JukkaL
Copy link
Collaborator

JukkaL commented Jun 3, 2019

In particular, when I tried running the tests with -k Enum -ra I got this which doesn't provide any useful context such as test name:

================================================ short test summary info ================================================
SKIP [1] /Users/jukka/src/mypy/mypy/test/data.py:220: <Skipped instance>

@blueyed
Copy link
Contributor Author

blueyed commented Jun 3, 2019

It is more useful with failed/errored tests, where it has nodeids.
E.g. it would be useful to see here: https://travis-ci.org/python/mypy/builds/540634510#L608

@msullivan
Copy link
Collaborator

I'm going to close this since I don't think we get why this helps

@msullivan msullivan closed this Jan 15, 2020
@blueyed blueyed deleted the pytest-addopts-ra branch January 16, 2020 00:00
@blueyed
Copy link
Contributor Author

blueyed commented Jan 16, 2020

Fair enough - it (or rather the core of it) might become default anyway (pytest-dev/pytest#6454).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants