Repository: qpid-jms
Updated Branches:
  refs/heads/master c7475b0f0 -> 12ca77c42


add jacoco configuration to allow viewing test coverage

In order to view, run "mvn jacoco:report" after test runs or build the sites


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/69db6cc3
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/69db6cc3
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/69db6cc3

Branch: refs/heads/master
Commit: 69db6cc359e52a251047d5428ec8836d9a746f9b
Parents: c7475b0
Author: Robert Gemmell <rob...@apache.org>
Authored: Thu Oct 2 13:23:05 2014 +0100
Committer: Robert Gemmell <rob...@apache.org>
Committed: Thu Oct 2 13:23:09 2014 +0100

----------------------------------------------------------------------
 pom.xml                        | 34 ++++++++++++++++++++++++++++++++--
 qpid-jms-examples/pom.xml      |  6 +++++-
 qpid-jms-interop-tests/pom.xml |  1 +
 3 files changed, 38 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/69db6cc3/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3c7b754..474456e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -64,13 +64,14 @@
     <maven-compiler-plugin-version>3.1</maven-compiler-plugin-version>
     <findbugs-maven-plugin-version>3.0.0</findbugs-maven-plugin-version>
     <build-helper-maven-plugin-version>1.8</build-helper-maven-plugin-version>
+    <jacoco-plugin-version>0.7.2.201409121644</jacoco-plugin-version>
 
     <!-- Test properties -->
     
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
     <proton.trace.frames>false</proton.trace.frames>
 
     <!-- surefire forked jvm arguments -->
-    <argLine>-Xmx2g -enableassertions</argLine>
+    <argLine>-Xmx2g -enableassertions ${jacoco-config}</argLine>
   </properties>
 
   <issueManagement>
@@ -228,6 +229,11 @@
           <artifactId>build-helper-maven-plugin</artifactId>
           <version>${build-helper-maven-plugin-version}</version>
         </plugin>
+        <plugin>
+          <groupId>org.jacoco</groupId>
+          <artifactId>jacoco-maven-plugin</artifactId>
+          <version>${jacoco-plugin-version}</version>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
@@ -243,6 +249,30 @@
           <showWarnings>true</showWarnings>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.jacoco</groupId>
+        <artifactId>jacoco-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>prepare-agent</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <propertyName>jacoco-config</propertyName>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
-</project>
\ No newline at end of file
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.jacoco</groupId>
+        <artifactId>jacoco-maven-plugin</artifactId>
+        <version>${jacoco-plugin-version}</version>
+      </plugin>
+    </plugins>
+  </reporting>
+</project>

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/69db6cc3/qpid-jms-examples/pom.xml
----------------------------------------------------------------------
diff --git a/qpid-jms-examples/pom.xml b/qpid-jms-examples/pom.xml
index bd2b656..e8fb19b 100644
--- a/qpid-jms-examples/pom.xml
+++ b/qpid-jms-examples/pom.xml
@@ -24,9 +24,13 @@
   </parent>
 
   <artifactId>qpid-jms-examples</artifactId>
-  <packaging>jar</packaging>
   <name>QpidJMS Examples</name>
   <description>Examples for QpidJMS</description>
+  <packaging>jar</packaging>
+
+  <properties>
+    <jacoco.skip>true</jacoco.skip>
+  </properties>
 
   <dependencies>
     <dependency>

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/69db6cc3/qpid-jms-interop-tests/pom.xml
----------------------------------------------------------------------
diff --git a/qpid-jms-interop-tests/pom.xml b/qpid-jms-interop-tests/pom.xml
index 30a9101..0ffc9f6 100644
--- a/qpid-jms-interop-tests/pom.xml
+++ b/qpid-jms-interop-tests/pom.xml
@@ -29,6 +29,7 @@
   <packaging>pom</packaging>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <jacoco.skip>true</jacoco.skip>
   </properties>
 
   <modules>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to