-
Notifications
You must be signed in to change notification settings - Fork 75
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
Apparent issue with pytest 3.4.0 #132
Comments
PR #133 open with a fix. 👍 |
@nicoddemus I'm not sure that PR fixed the issue, notice the 'collected' line is not shown:
|
@m3talstorm I'm not entirely familiar how |
I think originally when I created pytest-sugar the plan was to hide a lot of noise from the test report (such as the number of tests collected). I would say the optimal resolution would be to hide all the extra lines and make them configurable with the theme. If you look at the GIF in README you can actually notice that we didn't have rootdir or collected lines. |
Pytest 3.4.0 was just released today and immediately I started seeing failing tests and lots of unfamiliar output. I wasn't sure what it was, so I started removing bits one by one, and the problem seems to go away when I disable the pytest-sugar plugin. I'm not sure whether to report this to the pytest project or the pytest-sugar project, but thought I'd start here.
Pytest-sugar is the only plugin I'm using, so perhaps it's a general problem related to all pytest plugins.
I made a project that I believe isolates the issue: https://github.com/jakewan/pytestdemo
From the README:
Create a virtual environment
From project root directory:
Run the test
Remove pytest-sugar
Update setup.py by commenting out the line requiring pytest-sugar, e.g.
Recreate the virtual environment
Run the test again
Okay with --verbose
Also, in case it's relevant, the problem also goes away when I run py.test with the
--verbose
flag:The text was updated successfully, but these errors were encountered: