Microsoft DevOps Engineer Expert AZ-400 Practice Question

You use Azure Pipelines YAML to run unit tests for a Python application. The tests are executed with pytest-cov and generate an XML file named coverage.xml in the $(Build.SourcesDirectory)/test-results folder. You want the pipeline summary to display line-by-line code coverage information and trends across builds. You add the following task to the YAML file:

- task: PublishCodeCoverageResults@1
  inputs:
    summaryFileLocation: '$(Build.SourcesDirectory)/test-results/coverage.xml'
    reportDirectory: '$(Build.SourcesDirectory)/test-results/htmlcov'
    failIfCoverageEmpty: true
    codeCoverageTool: <TO-BE-SET>

Which value should you set for codeCoverageTool so that Azure Pipelines ingests the coverage data correctly?

  • OpenCover

  • Cobertura

  • Emma

  • JaCoCo

Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot