Running unit tests

For many languages, support for running unit tests from the pipeline is built into Azure DevOps. Unit tests can be executed for C#, TypeScript, Python, Maven, C++, Go, and many more.

For some of these languages, a single ready-made task is available. One example of this are tests written in C#. During the execution of .NET testsfor example, in C#test results are automatically stored in an XML format that is understood by the build agent.

This allows the pipeline agent to interpret the test results and visualize them in the build results, as shown here:

For some languages, more than one task has to be executed. For example, ...

Get Implementing Azure DevOps Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.