A client has asked to share an HTML version of test coverage report for the AEM project.
What plugin should the AEM developer use to generate test coverage report using latest archetype?
A)

B)

C)

To generate a test coverage report for an AEM project using the latest archetype, the correct plugin to use is the maven-surefire-plugin (Option A). The maven-surefire-plugin is a part of the Maven ecosystem and is widely used to run unit tests within a Maven project. This plugin can be configured to generate detailed test reports, including HTML versions, which can be easily shared with clients.
Here's how to configure the maven-surefire-plugin to generate test coverage reports:
Add the Plugin to the POM File: Add the maven-surefire-plugin configuration in your pom.xml file:
<groupId>org.apache.maven.plugins</groupId>
<version>2.22.2</version>
<configuration>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<reportFormat>html</reportFormat>
<trimStackTrace>false</trimStackTrace>
</configuration>
Execute the Maven Command: Run the following command to execute the tests and generate the coverage report:
mvn clean test
Locate the Report: The HTML test coverage report will be generated in the target/surefire-reports directory of your project.
Kent
10 months agoJeanice
10 months agoRegenia
10 months agoTalia
10 months agoRoxane
10 months agoSanda
11 months agoIlona
11 months agoLynelle
11 months agoJohnna
11 months agoYun
11 months agoEmerson
11 months agoLeota
11 months agoHoward
11 months agoChauncey
11 months agoLyda
2 years agoLavera
2 years agoStefanie
2 years agoRebecka
2 years agoLatia
2 years agoAugustine
2 years agoHoward
2 years agoOretha
2 years agoWade
2 years agoAnnmarie
2 years agoLavonda
2 years agoNidia
2 years agoWhitley
2 years agoNicholle
2 years agoLasandra
2 years agoKarl
2 years agoMose
2 years agoJettie
2 years agoElvera
2 years agoStephen
2 years agoWade
2 years agoBilly
2 years agoAmmie
2 years agoPaulina
2 years ago