When automating a Java build in Azure DevOps, you need to collect code coverage metrics and publish the results to the pipeline. Which tool should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: JaCoCo.
Why this is the answer
JaCoCo (Java Code Coverage) is the industry-standard tool for collecting and reporting code coverage metrics for Java projects. It integrates seamlessly with build tools like Maven and Gradle, making it ideal for Azure DevOps pipelines. JaCoCo generates reports in various formats, including XML and HTML, which can then be published to Azure DevOps for visualization and analysis. Bullseye Coverage is a commercial code coverage tool primarily for C/C++ and .NET, not Java. JUnit is a unit testing framework for Java, not a code coverage tool itself, although it's used with code coverage tools. MSTest is Microsoft's unit testing framework for .NET applications, not relevant for Java projects.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed