Skill 3.2.3

Implement tests in a pipeline, including configuring test tasks, configuring test agents, and integration of test results

Key Concepts

Tests usually run with a build tool command, such as dotnet test, or with the VSTest@3 task. PublishTestResults@2 publishes JUnit, NUnit, VSTest, XUnit or CTest results to the Tests tab.

The agent needs the required frameworks, browsers and network access, so user interface tests may need a self-hosted agent or a suitable image. The publish step needs a condition such as succeededOrFailed(), so that failed results are still reported.