Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send a detailed email to specific developer from Azure DevOps on failure of unit tests from a Build pipeline?

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

like image 291
Touqeer Avatar asked Apr 04 '19 07:04

Touqeer


People also ask

How do I export a pipeline in Azure DevOps?

To export a classic release pipeline, navigate to Releases, choose ..., and select Export. To import a classic release pipeline, navigate to Releases, choose +New, and select Import release pipeline.

How do I check my Azure DevOps results?

Select Test Plans to open the Test Plans page. Select a test plan to open it, then select the Charts tab. Under Charts, select New > New test result chart.


1 Answers

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

like image 81
Shamrai Aleksander Avatar answered Sep 28 '22 14:09

Shamrai Aleksander