jenkinsci / junit-plugin

Allows JUnit-format test results to be published
https://plugins.jenkins.io/junit
MIT License
75 stars 334 forks source link

Get list of failed tests to include messages #410

Open varikin opened 2 years ago

varikin commented 2 years ago

What feature do you want to see added?

Would like to include a list of failed tests in messages. I found this PR which tried to include the list in the test result summary. But it looks like it will not be completed in that fashion.

I have seen suggestions of using an email-ext plugin for this, what I would like to include the list in Slack messages as well as email. Seems best to add this to Junit plugin.

I imagine the list could be accessed though a call to the junit plugin when constructing the message.

Upstream changes

I am not familiar with the internals of Jenkins or the Junit plugin so I don't know where to start on this.

timja commented 2 years ago

I think easier to do this in the Slack plugin, it already has some support for this with freestyle builds I think. Likely do-able there by getting the information from the Action.

cc @jglick who may have some useful input as I think he's done similar in a proprietary plugin.

jglick commented 2 years ago

I think he's done similar in a proprietary plugin

Not personally, but yes https://docs.cloudbees.com/docs/cloudbees-ci/latest/slack-integration/setting-up-psm#_getting_the_most_out_of_notifications_with_recommended_plugins