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
3 months agoJeanice
3 months agoRegenia
3 months agoTalia
4 months agoRoxane
4 months agoSanda
4 months agoIlona
4 months agoLynelle
4 months agoJohnna
5 months agoYun
5 months agoEmerson
5 months agoLeota
5 months agoHoward
5 months agoChauncey
5 months agoLyda
1 year agoLavera
1 year agoStefanie
1 year agoRebecka
1 year agoLatia
1 year agoAugustine
1 year agoHoward
1 year agoOretha
1 year agoWade
1 year agoAnnmarie
1 year agoLavonda
1 year agoNidia
1 year agoWhitley
1 year agoNicholle
1 year agoLasandra
1 year agoKarl
1 year agoMose
1 year agoJettie
1 year agoElvera
1 year agoStephen
1 year agoWade
1 year agoBilly
1 year agoAmmie
1 year agoPaulina
1 year ago