Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.16 #39

Merged
merged 2 commits into from
Feb 13, 2016
Merged

0.16 #39

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,24 @@ $ mvn clean install -Denv=prod

Generate an announcement from the announcement template


###jacoco

This profile can be activated manually:

It configures [jacoco-maven-plugin] (http://eclemma.org/jacoco/trunk/doc/maven.html) for check and report tests coverage.

Name | Description | Value | Default Value
------------ | ------------- | ------------- | -------------
unit.tests.coverage.output.directory | The path to unit tests coverage report | path | ${project.reporting.outputDirectory}/jacoco-ut
integration.tests.coverage.output.directory | The path to integration tests coverage report | path | ${project.reporting.outputDirectory}/jacoco-it

###clover

The profile is activated automatically when you have a **clover.license** file in a root directory.

It configures [maven-clover2-plugin] (https://docs.atlassian.com/maven-clover2-plugin/2.3.1/) for check and report tasks.
It configures [maven-clover2-plugin] (https://docs.atlassian.com/maven-clover2-plugin) for check and report tests coverage.


###gh-pages

Expand Down
125 changes: 125 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
<site.path>${basedir}/src/site</site.path>
<site.skip>true</site.skip>


<unit.tests.coverage.output.directory>
${project.reporting.outputDirectory}/jacoco-ut
</unit.tests.coverage.output.directory>
<integration.tests.coverage.output.directory>
${project.reporting.outputDirectory}/jacoco-it
</integration.tests.coverage.output.directory>

<config.version>1.3.0</config.version>
<guava.version>19.0</guava.version>
<objenesis.version>2.2</objenesis.version>
Expand Down Expand Up @@ -92,6 +100,7 @@
<maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version>

<maven-clover2-plugin.version>4.0.6</maven-clover2-plugin.version>
<jacoco-maven-plugin.version>0.7.5.201505241946</jacoco-maven-plugin.version>
<qulice-maven-plugin.version>0.16</qulice-maven-plugin.version>
<findbugs-maven-plugin.version>3.0.3</findbugs-maven-plugin.version>
<properties-maven-plugin.version>1.0.0</properties-maven-plugin.version>
Expand Down Expand Up @@ -831,6 +840,84 @@
</build>
</profile>

<profile>
<id>dep-jacoco</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
<propertyName>surefireArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
<outputDirectory>${unit.tests.coverage.output.directory}</outputDirectory>
</configuration>
</execution>

<execution>
<id>pre-integration-test</id>
<phase>pre-integration-test</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
<propertyName>failsafeArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>post-integration-test</id>
<phase>post-integration-test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile>
<outputDirectory>${integration.tests.coverage.output.directory}</outputDirectory>
</configuration>
</execution>

</executions>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${surefireArgLine}</argLine>
</configuration>
</plugin>

<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<perCoreThreadCount>true</perCoreThreadCount>
<threadCount>1</threadCount>
<argLine>${failsafeArgLine}</argLine>
</configuration>

</plugin>
</plugins>
</build>
</profile>

<profile>
<id>dep-log4j</id>
<activation>
Expand Down Expand Up @@ -1169,11 +1256,49 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<useFile>false</useFile>
<runOrder>random</runOrder>
<trimStackTrace>false</trimStackTrace>
<failIfNoTests>false</failIfNoTests>
<failIfNoSpecifiedTests>true</failIfNoSpecifiedTests>
<parallel>all</parallel>
<parallelTestsTimeoutInSeconds>0</parallelTestsTimeoutInSeconds>
<parallelTestsTimeoutForcedInSeconds>0</parallelTestsTimeoutForcedInSeconds>
<perCoreThreadCount>true</perCoreThreadCount>
<threadCount>4</threadCount>
<excludes>
<exclude>**/IT*.java</exclude>
</excludes>
</configuration>
</plugin>

<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<failIfNoSpecifiedTests>false</failIfNoSpecifiedTests>
<parallel>all</parallel>
<parallelTestsTimeoutInSeconds>0</parallelTestsTimeoutInSeconds>
<parallelTestsTimeoutForcedInSeconds>0</parallelTestsTimeoutForcedInSeconds>
<perCoreThreadCount>true</perCoreThreadCount>
<threadCount>4</threadCount>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
Expand Down