问题
I'm trying to send a detailed email containing information about all failed unit tests in a pipeline and said email must be sent to the developer who wrote the unit tests.
Currently, I have a Visual Studio Test task in my build pipeline which executes my tests and sends an email on failure which provides at least some information.
However:
a) I would like the email to be be send to the developer who wrote the tests.
b) Email should contains all the details of the tests that failed (such as can be seen in the "Tests" tab of a completed build).
The automatic email does not provide all the details I want and mentioned above
回答1:
Azure Devops does not support that feature. You may add your request here: Azure DevOps (formerly Visual Studio Team Services).
As workaround and if you have coding experience, you can try to analyze test runs with Rest Api (Results - Get) and send email (Sending E-mail using C#).
来源:https://stackoverflow.com/questions/55509785/how-to-send-a-detailed-email-to-specific-developer-from-azure-devops-on-failure