Your CI/CD pipeline runs a suite of automated unit tests using NUnit. You want to visualize the test results (pass/fail rates, duration) directly in the Azure DevOps pipeline summary dashboard. Which task must you include in your YAML pipeline after the test execution?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: PublishTestResults@2

The PublishTestResults task is used to publish test results to Azure Pipelines. It parses XML result files from frameworks like NUnit, JUnit, xUnit, or VSTest and displays the resu...

๐Ÿ“‹Part of Microsoft Certified: DevOps Engineer Expert (AZ-400) ยท Azure Certification Practice
Real Exam ScenarioContinuous Testing

Your CI/CD pipeline runs a suite of automated unit tests using NUnit. You want to visualize the test results (pass/fail rates, duration) directly in the Azure DevOps pipeline summary dashboard. Which task must you include in your YAML pipeline after the test execution?

โœ“ Correct Answer & ExplanationContinuous Testing

Correct Answer

PublishTestResults@2

Why This Answer Is Correct

The PublishTestResults task is used to publish test results to Azure Pipelines. It parses XML result files from frameworks like NUnit, JUnit, xUnit, or VSTest and displays the results in the 'Tests' tab of the pipeline summary, complete with trend charts and detailed failure analysis.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Continuous Testing โ€” a core concept tested in Microsoft Certified: DevOps Engineer Expert (AZ-400). Understanding Continuous Testing is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.