You are making use of Azure DevOps to automate the build process for a Java-based application. You are required to include code coverage testing and publish the...
Microsoft AZ-400 Exam
Questions Number: 412 out of 535 Questions
77.01%
Question 412
You are making use of Azure DevOps to automate the build process for a Java-based application. You are required to include code coverage testing and publish the results to the pipeline. Which two of the following tools could you use?
Use Publish Code Coverage Results task in a build pipeline to publish code coverage results to Azure Pipelines or TFS, which were produced by a build in Cobertura or JaCoCo format. Incorrect Answers: B. If you're building on Linux or macOS, you can use Coverlet or a similar tool to collect code coverage metrics. Code coverage results can be published to the server by using the Publish Code Coverage Results task. To leverage this functionality, the coverage tool must be configured to generate results in Cobertura or JaCoCo coverage format. D. Coverage.py is used for Python, not for Java. References: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results