You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2018/05/03 15:17:57 UTC

[airavata] branch group-based-auth updated: Integrating Jacoco code coverage reporting

This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch group-based-auth
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/group-based-auth by this push:
     new b66e01b  Integrating Jacoco code coverage reporting
b66e01b is described below

commit b66e01b1e3961a12da5a096f8a4284583cda97c8
Author: dimuthu <di...@gmail.com>
AuthorDate: Thu May 3 11:17:48 2018 -0400

    Integrating Jacoco code coverage reporting
---
 pom.xml | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/pom.xml b/pom.xml
index fae86d2..c8129df 100644
--- a/pom.xml
+++ b/pom.xml
@@ -113,6 +113,7 @@
         <json.version>20160212</json.version>
         <commons.io.version>2.4</commons.io.version>
         <google.guava.version>20.0</google.guava.version>
+        <jacoco.version>0.8.1</jacoco.version>
     </properties>
 
     <developers>
@@ -660,6 +661,45 @@
                             </execution>
                         </executions>
                     </plugin>
+                    <plugin>
+                        <groupId>org.jacoco</groupId>
+                        <artifactId>jacoco-maven-plugin</artifactId>
+                        <version>${jacoco.version}</version>
+                        <executions>
+                            <execution>
+                                <id>prepare-agent</id>
+                                <goals>
+                                    <goal>prepare-agent</goal>
+                                </goals>
+                            </execution>
+                            <execution>
+                                <id>report</id>
+                                <phase>prepare-package</phase>
+                                <goals>
+                                    <goal>report</goal>
+                                </goals>
+                            </execution>
+                            <execution>
+                                <id>post-unit-test</id>
+                                <phase>test</phase>
+                                <goals>
+                                    <goal>report</goal>
+                                </goals>
+                                <configuration>
+                                    <!-- Sets the path to the file which contains the execution data. -->
+
+                                    <dataFile>target/jacoco.exec</dataFile>
+                                    <!-- Sets the output directory for the code coverage report. -->
+                                    <outputDirectory>target/jacoco-ut</outputDirectory>
+                                </configuration>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <systemPropertyVariables>
+                                <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
+                            </systemPropertyVariables>
+                        </configuration>
+                    </plugin>
                 </plugins>
             </build>
             <activation>

-- 
To stop receiving notification emails like this one, please contact
dimuthuupe@apache.org.