Skip to content

Commit

Permalink
#106 (2) - Added unit tests coverage report (Cobertura in addition to…
Browse files Browse the repository at this point in the history
… Jacoco)
  • Loading branch information
dzc34 committed Dec 9, 2017
1 parent ea91eb9 commit 12d1a24
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 3 deletions.
31 changes: 30 additions & 1 deletion documentation/en/30_Contributor_doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
-----
* Checking for new dependency / plugin updates
* OWASP Dependency-Check
* Code coverage
* Checkstyle
* JavaDoc


## Checking for new dependency / plugin updates
```bash
# Checking for new dependency updates
Expand Down Expand Up @@ -59,6 +59,35 @@ mvn dependency-check:help -Ddetail=true -Dgoal=aggregate
* http://jeremylong.github.io/DependencyCheck/
* http://jeremylong.github.io/DependencyCheck/dependency-check-maven/

## Code coverage

no aggregate report (if you know how to do it…)

### Jacoco

#### Documentation
* http://www.jacoco.org/jacoco/
* https://github.com/jacoco/jacoco/

#### Usage
```bash
mvn clean install
# report: engine/*/target/site/jacoco
```

### Cobertura

#### Documentation
* http://www.mojohaus.org/cobertura-maven-plugin/
* https://github.com/cobertura/cobertura

#### Usage
```bash
mvn cobertura:cobertura
# report: engine/*/target/site/cobertura
```

## Checkstyle
Scan Contrast-Finder to check the violations of a coding standard.
Expand Down
25 changes: 23 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@
<!-- Jacoco - Code coverage
http://www.jacoco.org/jacoco/
https://github.com/jacoco/jacoco/
report: target/site/jacoco
usage: mvn clean install -->
usage: mvn clean install
report: engine/*/target/site/jacoco
no aggregate report (if you know how to do it…) -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand All @@ -255,6 +256,24 @@
</executions>
</plugin>

<!-- Cobertura - Code coverage
http://www.mojohaus.org/cobertura-maven-plugin/
https://github.com/cobertura/cobertura
usage: mvn cobertura:cobertura
report: engine/*/target/site/cobertura
no aggregate report (if you know how to do it…) -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<formats>
<format>html</format>
</formats>
</configuration>
</plugin>


</plugins>
</build>

Expand All @@ -268,6 +287,8 @@
<version>${maven-project-info-reports-plugin.version}</version>
</plugin>



<!-- JXR produces a cross-reference of the project's sources (needed for maven-checkstyle-plugin)
http://maven.apache.org/jxr/maven-jxr-plugin/
https://github.com/apache/maven-jxr
Expand Down

0 comments on commit 12d1a24

Please sign in to comment.