-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
document test if style output of --collect-only output with -q #3284
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
It is not quite clear to me what you mean @fontealpina, would you mind add more details? Thanks! |
Let's suppose to have a test: class TestSuite():
def test_case_01(self):
assert True
def test_case_02(self):
assert True Running the test with
Running pytest with
I was wondering how it would be possible instead to get with
|
That seems useful to easily copy test IDs to select individual tests too. |
thats supported with |
@RonnyPfannschmidt Thanks |
closing as it seems to be answered |
Thx @fontealpina for creating this ticket! Is this documented in our docs? If not, we should change that. |
@Thisch I have just checked and actually seems it is missing. |
in that case it should be added, thanks for going and checking |
I would expect that the test items returned by Do you know if this is supported by using different cmd line flags? |
drop the |
oh, and if it doesn't ,thats a bug |
@Thisch it works for me using
Or do you really mean
But I think supporting it through |
In projects using unittest-style classes you have to use |
@RonnyPfannschmidt, no it doesn't work with |
ok, so we have a bug for interaction between collectonly and unittest classes |
@Thisch can you please open a new issue with that, including a quick example? (I would but I'm short on time right now) |
Sure, in a few hours. |
@RonnyPfannschmidt Thank you! |
Also fixed as of pytest 3.9.1 (probably earlier 😜), so I'm closing this issue. |
Currently the
--collect-only
option shows the collected tests in a tree style presentation.I was wondering if there is a way to show the collected tests list with the
-v
style, of course without the test result.This would be useful to compare the output of
--collect-only
with the output of other runs of the tests.The text was updated successfully, but these errors were encountered: