Automatically parse pytest results

When I run a ci and pytest results fail, it appears that I currently have to go through the terminal output manually to see which test has failed. With teamcity there is a package called teamcity-messaging . Is there something similar available for gitlab-ci?


this should be doable with JUnit test reports, though there are no examples for pytest atm unfortunately. I’ve found this request to add docs.

From a quick search on the web, I’ve seen that pytest supports the JUnit XML output with a specific parameter. This highly likely helps solve your requirement then.

This diff sheds some light from a community project.


I updated a simple example project to show where those updates go that you can reference and will work on the docs update soon @dickreuter. Thanks for finding the links to help me pull that together @dnsmichi!