pytest-html
pytest-html copied to clipboard
warnings summary not reflected in html-summary (feature request)
In addition to test failure, pytest captures a warnings summary and reports this at the end of the test summary. It would be great if this could be reflected in the html summary as well.
Hi @davehunt, is this still something that is relevant? If so I'd like to take a stab at implementing it
Sure, feel free to submit a PR! 👍 @gnikonorov
Thank you @BeyondEvil!
Still planning on working on this. I can start once https://github.com/pytest-dev/pytest/pull/7255 is merged
Hey @gnikonorov this feature would be great. Are you still planning to do this?
Hi @nepumuk123, I am yes. We just need to wait for a version of pytest that contains https://github.com/pytest-dev/pytest/pull/7255 to be released. That should be coming soon. I'll update this issue when it happens
Cool, thank you.
I think this is merged and released now @gnikonorov :)
I'm going to pick this up again, @BeyondEvil
The solution would involve making a separate 'warnings summary' table similar to the results table but with only 1 data point, the warnings for a test. It would only show tests that emit warnings and would be hidden from view if there are no warnings.
This would involve a merge into your next-gen branch. Do you have any opposition?
This would involve a merge into your next-gen branch. Do you have any opposition?
I have no idea what the implications will be, but we'll worry about that later. :)