Mid From PDF DevOps Azure DevOps

How do you run unit tests and publish test results in a pipeline? Answer: You use the DotNetCoreCLI@2 task with test command and publish results. Example (YAML): - task: DotNetCoreCLI@2 inputs: command: 'test' projects: '**/*Tests.csproj' publishTestResults: true Azure Pipelines will then display test results (passed, failed, duration) in the build summary.

How do you run unit tests and publish test results in a pipeline?

Answer:

You use the DotNetCoreCLI@2 task with test command and publish results.

Example (YAML):

  • task: DotNetCoreCLI@2

inputs:

command: 'test'

projects: '**/*Tests.csproj'

publishTestResults: true

Azure Pipelines will then display test results (passed, failed, duration) in the build summary.

More from Microsoft Azure Tutorial

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details