You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemds.apache.org by ba...@apache.org on 2021/11/01 13:51:58 UTC

[systemds] branch main updated: [MINOR] Add codecoverage flag to specify package to cover

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

baunsgaard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/main by this push:
     new b599519  [MINOR] Add codecoverage flag to specify package to cover
b599519 is described below

commit b599519f01711e4c10f8fd126bda6baad1583a00
Author: baunsgaard <ba...@tugraz.at>
AuthorDate: Mon Nov 1 14:48:13 2021 +0100

    [MINOR] Add codecoverage flag to specify package to cover
    
    This commit adds a flag to enable specifying a subpackage to test for
    codecoverage.
    
    I use this to test the compression code coverage like:
    
    mvn compile test \
        -D maven.test.skip=false \
        -D rerun.failing.tests.count=0 \
        -D automatedtestbase.outputbuffering=true \
        -D test=org.apache.sysds.test.component.compress.** \
        -D jacoco.skip=false \
        -D jacoco.include=**/runtime/compress/**
---
 pom.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/pom.xml b/pom.xml
index e31cfe8..10d807f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,6 +52,7 @@
 		<maven.test.skip>true</maven.test.skip>
 		<rerun.failing.tests.count>2</rerun.failing.tests.count>
 		<jacoco.skip>true</jacoco.skip>
+		<jacoco.include>**</jacoco.include>
 		<automatedtestbase.outputbuffering>false</automatedtestbase.outputbuffering>
 		<argLine>-Xms3000m -Xmx3000m -Xmn300m</argLine>
 		<enableStats>false</enableStats>
@@ -365,8 +366,14 @@
 				<groupId>org.jacoco</groupId>
 				<artifactId>jacoco-maven-plugin</artifactId>
 				<version>0.8.5</version>
+				<configuration>
+					<includes>
+						<include>${jacoco.include}</include>
+					</includes>
+				</configuration>
 				<executions>
 					<execution>
+						<id>default-prepare-agent</id>
 						<goals>
 							<goal>prepare-agent</goal>
 						</goals>