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 2021/06/15 23:28:40 UTC

[sling-site] 03/03: SLING-10490 Add jacoco command when set to base configuration

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-site.git

commit 2c42549d4b382808fb80a4ab3a04853c24d8cc97
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Wed Jun 16 01:27:47 2021 +0200

    SLING-10490 Add jacoco command when set to base configuration
---
 .../content/documentation/development/testing-paxexam.md  | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/main/jbake/content/documentation/development/testing-paxexam.md b/src/main/jbake/content/documentation/development/testing-paxexam.md
index d07fe57..5649338 100644
--- a/src/main/jbake/content/documentation/development/testing-paxexam.md
+++ b/src/main/jbake/content/documentation/development/testing-paxexam.md
@@ -103,12 +103,9 @@ Configure the build artifact (bundle) to use in integration testing in `pom.xml`
         </executions>
         <configuration>
           <redirectTestOutputToFile>true</redirectTestOutputToFile>
-          <systemProperties>
-            <property>
-              <name>bundle.filename</name>
-              <value>${basedir}/target/${project.build.finalName}.jar</value>
-            </property>
-          </systemProperties>
+          <systemPropertyVariables combine.children="append">
+            <bundle.filename>${basedir}/target/${project.build.finalName}.jar</bundle.filename>
+          </systemPropertyVariables>
         </configuration>
       </plugin>
 
@@ -183,6 +180,12 @@ See Pax Exam's [Logging Configuration](https://ops4j1.jira.com/wiki/spaces/PAXEX
 For [Logback](https://logback.qos.ch) use `SlingOptions#logback()` and add both `exam.properties` and `logback.xml` to `src/test/resources` as described in Pax Exam's [Logging Configuration](https://ops4j1.jira.com/wiki/spaces/PAXEXAM4/pages/54263891/Logging+Configuration).
 
 
+## Code Coverage
+
+Code Coverage with [JaCoCo](https://www.eclemma.org/jacoco/) is configured by default in profile `jacoco-report` since Sling Parent 40.
+No additional configuration is required for Pax Exam since Testing PaxExam 4.0.
+
+
 ## Examples
 
 ### Set up a tailored Sling instance