在构建管道中的单元测试失败时,如何从Azure DevOps向特定的开发人员发送详细的电子邮件? [英] How to send a detailed email to specific developer from Azure DevOps on failure of unit tests from a Build pipeline?

查看:166
本文介绍了在构建管道中的单元测试失败时,如何从Azure DevOps向特定的开发人员发送详细的电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试发送详细的电子邮件,其中包含有关管道中所有失败的单元测试的信息,并且必须将电子邮件发送给编写单元测试的开发人员.

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.

当前,我在构建管道中有一个Visual Studio Test任务,该任务执行我的测试并在失败时发送电子邮件,该电子邮件至少提供了 some 个信息.

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.

但是:
a)我希望将电子邮件发送给编写测试的开发人员.
b)电子邮件应包含失败的测试的所有详细信息(例如可以在完整版本的测试"选项卡中看到).
自动电子邮件无法提供我想要的和上面提到的所有详细信息

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

推荐答案

Azure Devops不支持该功能.您可以在此处添加您的请求: Azure DevOps(以前是Visual Studio Team Services).

Azure Devops does not support that feature. You may add your request here: Azure DevOps (formerly Visual Studio Team Services).

作为解决方法,如果您有编码经验,则可以尝试使用Rest Api(使用C#发送电子邮件).

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#).

这篇关于在构建管道中的单元测试失败时,如何从Azure DevOps向特定的开发人员发送详细的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆