You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2020/08/26 20:06:23 UTC
[sling-org-apache-sling-commons-crypto] branch master updated:
SLING-9700 Enable code coverage with JaCoCo
This is an automated email from the ASF dual-hosted git repository.
olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-crypto.git
The following commit(s) were added to refs/heads/master by this push:
new 95baf6f SLING-9700 Enable code coverage with JaCoCo
95baf6f is described below
commit 95baf6f68ce61f0c4f3efc7f235d239955b12dff
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Wed Aug 26 22:05:17 2020 +0200
SLING-9700 Enable code coverage with JaCoCo
---
pom.xml | 26 ++++++++++++++++++++++
.../commons/crypto/it/tests/CryptoTestSupport.java | 3 ++-
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 128d54b..eb7338e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -90,10 +90,36 @@
<name>bundle.filename</name>
<value>${basedir}/target/${project.build.finalName}.jar</value>
</property>
+ <property>
+ <name>jacoco.command</name>
+ <value>${jacoco.command}</value>
+ </property>
</systemProperties>
</configuration>
</plugin>
<plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>prepare-agent</id>
+ <configuration>
+ <propertyName>jacoco.command</propertyName>
+ </configuration>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
diff --git a/src/test/java/org/apache/sling/commons/crypto/it/tests/CryptoTestSupport.java b/src/test/java/org/apache/sling/commons/crypto/it/tests/CryptoTestSupport.java
index d77f586..8d233bb 100644
--- a/src/test/java/org/apache/sling/commons/crypto/it/tests/CryptoTestSupport.java
+++ b/src/test/java/org/apache/sling/commons/crypto/it/tests/CryptoTestSupport.java
@@ -43,7 +43,8 @@ public abstract class CryptoTestSupport extends TestSupport {
wrappedBundle(mavenBundle().groupId("com.google.truth").artifactId("truth").versionAsInProject()),
mavenBundle().groupId("com.google.guava").artifactId("guava").versionAsInProject(),
mavenBundle().groupId("com.google.guava").artifactId("failureaccess").versionAsInProject(),
- mavenBundle().groupId("com.googlecode.java-diff-utils").artifactId("diffutils").versionAsInProject()
+ mavenBundle().groupId("com.googlecode.java-diff-utils").artifactId("diffutils").versionAsInProject(),
+ vmOption(System.getProperty("jacoco.command"))
);
}