pytest: How to get a list of all failed tests at the end of the session? (and while using xdist)

Run pytest with -rf to get it to print a list of failed tests at the end. From py.test –help: -r chars show extra test summary info as specified by chars (f)ailed, (E)error, (s)skipped, (x)failed, (X)passed, (p)passed, (P)passed with output, (a)all except pP. Warnings are displayed at all times except when –disable-warnings is set Here’s … Read more