Generate Test Coverage Report

Test coverage reports can be easily added to the set of reports that are generated for your site documentation. To enable the coverage report must add the plugin to your reporting configuration:

<project>
  ...
  <packaging>erlang-otp</packaging>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>eu.lindenbaum</groupId>
        <artifactId>maven-erlang-plugin</artifactId>
        <version>1.0.0-beta</version>
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build>
  <reporting>
    <plugins>
      <plugin>
        <groupId>eu.lindenbaum</groupId>
        <artifactId>maven-erlang-plugin</artifactId>
        <version>1.0.0-beta</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>coverage</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>  
  ...
</project>

This will add only the test coverage report to your site documentation, generated as the file erlang-coverage-report.html, and added to the reports in the generated site reports menu.

NOTE: by default both EDoc and test coverage reports are generated when adding the plugin without specific reportSets to the reporting section of your pom.