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
4 months agoJeanice
5 months agoRegenia
5 months agoTalia
5 months agoRoxane
5 months agoSanda
6 months agoIlona
6 months agoLynelle
6 months agoJohnna
6 months agoYun
6 months agoEmerson
6 months agoLeota
6 months agoHoward
6 months agoChauncey
6 months agoLyda
2 years agoLavera
1 year agoStefanie
1 year agoRebecka
1 year agoLatia
2 years agoAugustine
1 year agoHoward
1 year agoOretha
1 year agoWade
2 years agoAnnmarie
2 years agoLavonda
1 year agoNidia
1 year agoWhitley
1 year 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