-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
"<-" in verbose test output #3211
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
Comments
I've found a few tests in test_terminal.py which indicate that the lines containing "<-" have sth to do with baseclasses in different test modules. I think this behavior should be configurable and preferably opt-in. |
IIRC your assessment is correct, here's a minimal reproducer: # contents of base.py
class D:
def test_foobar(self):
pass
# contents of test_foo.py
from base import D
class Test(D):
def test_foo(self):
pass
I wouldn't mind adding an option and also changing to not use the |
@nicoddemus I agree |
What would be better to use instead of How about just removing the reporting of base classes completely? |
I'm totally in for removing the reporting of the base classes. |
can we take a look at how and when it was introduced beforehand |
Edit: added the link to the commit, where this output format was introduced to the description of this issue. |
thanks for the research, i do wonder if we should move it to a higher verbosity level instead of removing it since its quite useful for debugging various legacy codebases |
@RonnyPfannschmidt thx for the suggestion, I'll simply change the verbosity level. |
To show the subclassed file in legacy test suits in the runtest output you have to set the verbosity level to at least "-vv" now. Closes pytest-dev#3211
To show the subclassed file in legacy test suits in the runtest output you have to set the verbosity level to at least "-vv" now. Closes pytest-dev#3211
In my integrationtests the verbose text output does not seem to be consistent. There are three different types of lines in the output of pytest:
I don't understand why the last two lines contain '<-' and a subsequent path. I've studied the code in https://github.com/pytest-dev/pytest/blob/master/src/_pytest/terminal.py#L517 but I don't understand it. Can anyone help me?
The "<-" in the pytest output was introduced in d73e689
The text was updated successfully, but these errors were encountered: