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

查看:11
本文介绍了如何就 Build 管道中的单元测试失败向 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 测试任务,它执行我的测试并在失败时发送电子邮件,其中至少提供一些信息.

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) 电子邮件应包含失败测试的所有详细信息(例如可以在已完成构建的测试"选项卡中看到).
自动电子邮件没有提供我想要和上面提到的所有细节

推荐答案

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

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

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