ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 61 - AZ-400 discussion

Report
Export

You are automating the build process for a Java-based application by using Azure DevOps.

You need to add code coverage testing and publish the outcomes to the pipeline.

What should you use?

A.
Cobertura
Answers
A.
Cobertura
B.
Bullseye Coverage
Answers
B.
Bullseye Coverage
C.
MSTest
Answers
C.
MSTest
D.
Coverlet
Answers
D.
Coverlet
E.
NUnit
Answers
E.
NUnit
F.
Coverage.py
Answers
F.
Coverage.py
Suggested answer: A

Explanation:

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: Bullseye Coverage is used for C++ code, and not for Java.

D: 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.

F: Coverage.py is used for Python, not for Java.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results

asked 02/10/2024
Kris Dayananda
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first