Test Automation Reporting with Azure DevOps CI in .NET Projects

Test Automation Reporting with Azure DevOps CI in .NET Projects

In the next few articles from the Automation Tools Series, I will show you different test automation reporting solutions. Finally, there will be an article comparing them showing their pros and cons. Test automation reporting and visual representation of test results is something crucial for the successful test automation project. Moreover, it can save you a lot of time analyzing the tests results, especially if there are many failing entries. The integration with this type of solution is one of the main features of the 5th generation test automation frameworks.

What Is Azure DevOps CI?

Azure DevOps offers one of the best CI on the market. Instead of using 3rd party tools or systems you can directly publish the results in Azure DevOps.

Why did I decide to write about it? Well, we had to determine how to analyse the 6000+ automated tests verifying each feature of our framework BELLATRIX. So, to choose the best tool for the job we created spike projects for the most popular ones. Besides that, we will offer full integrations with all of these tools in the framework. By the way this was our final choice. Right now all of our 40 builds are run in Azure DevOps CI. We visualize all of the results using the dashboards which you can see below.

You can create fully customizable dashboards to visualize the tests results and the latest status of your builds.

Azure DevOps CI Dashboards

It offers a well designed interface for filtering and checking the latest published test results.

Azure DevOps CI Summary Results

Also, you can see a summary with some informative charts.

Azure DevOps Test Results

If you open a failed tests, you can find detailed information why your tests failed. I will show you in a bit how to display here screenshots or video recordings of your failed tests.

Azure DevOps CI Failed Test

How to Publish Test Results to Azure DevOps CI?

1. Run your tests using the native .NET Core or .NET test runner depending on the test framework

Run BELLATRIX tests azure devops CI build

Your first option to publish the test results is to check the checkbox under the Arguments section- ‘Publish test results and code coverage’. However, the created run will be with a random name.

2. Add ‘Publish Test Results’ step to the build definition

Publish Test Results Azure Devops CI

This step is quite powerful since it can even merge automatically multiple test results files. Also, for the test run here, we set the current build definition name instead of the random generated one.

How to Upload Screenshots or Video Recordings from Tests?

If you want to upload a screenshot or video recording for MSTest or NUnit tests you can use the bellow code snippet.

TestContext.AddTestAttachment("screenshotPath", "image on fail");

In the newest versions of the MSTest v.2.0, this should be working.

Related Articles

AutomationTools, Free Tools

Quick Guide Bitbucket Pipelines on Running Selenium C# Tests

In this article from the series Automation Tools, I am going to guide you on how you can set up a Bitbucket Pipelines job for a Selenium C# project, run your Se

Quick Guide Bitbucket Pipelines on Running Selenium C# Tests

AutomationTools, Free Tools

Test Automation Reporting with ReportPortal in .NET Projects

In the next few articles from the Automation Tools Series, I will show you different test automation reporting solutions. Finally, there will be an article comp

Test Automation Reporting with ReportPortal in .NET Projects

AutomationTools, Free Tools, Web Automation

UI Performance Analysis via Selenium WebDriver

The article from the series Automation Tools reviews different approaches to check the UI performance of web apps reusing your existing functional Selenium WebD

UI Performance Analysis via Selenium WebDriver

AutomationTools, Free Tools, Java

Healenium: Self-Healing Library for Selenium-based Automated Tests

In this article, we're going to review a library called Healenium. It is an AI-powered open-source library for improving the stability of Selenium-based tests,

Healenium: Self-Healing Library for Selenium-based Automated Tests

AutomationTools, Free Tools

Test Automation Reporting with Allure in .NET Projects

In the next few articles from the Automation Tools Series, I will show you different test automation reporting solutions. Finally, there will be an article comp

Test Automation Reporting with Allure in .NET Projects

AutomationTools

Effortless Integration Tests with My Tested ASP.NET

In the perfect scenario, developers should write both unit and integration tests for their web applications and services. The former allows you to write easy an

Effortless Integration Tests with My Tested ASP.NET
Anton Angelov

About the author

Anton Angelov is Managing Director, Co-Founder, and Chief Test Automation Architect at Automate The Planet — a boutique consulting firm specializing in AI-augmented test automation strategy, implementation, and enablement. He is the creator of BELLATRIX, a cross-platform framework for web, mobile, desktop, and API testing, and the author of 8 bestselling books on test automation. A speaker at 60+ international conferences and researcher in AI-driven testing and LLM-based automation, he has been recognized as QA of the Decade and Webit Changemaker 2025.