Skip to content

Commit dffc7cd

Browse files
committed
code coverage hookup
1 parent d8f4982 commit dffc7cd

File tree

1 file changed

+77
-3
lines changed

1 file changed

+77
-3
lines changed

pom.xml

Lines changed: 77 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,6 @@
395395
<exclude>**/Abstract*.class</exclude>
396396
<exclude>**/*StressTest.class</exclude>
397397
</excludes>
398-
<argLine>
399-
${tests.jvm.argline}
400-
</argLine>
401398
<jvmArgs>
402399
<param>-Xmx512m</param>
403400
<param>-Xss256k</param>
@@ -1193,4 +1190,81 @@
11931190
</plugins>
11941191
</pluginManagement>
11951192
</build>
1193+
<profiles>
1194+
<!-- default profile, with randomization setting kicks in -->
1195+
<profile>
1196+
<id>default</id>
1197+
<activation>
1198+
<activeByDefault>true</activeByDefault>
1199+
</activation>
1200+
<build>
1201+
<plugins>
1202+
<plugin>
1203+
<groupId>com.carrotsearch.randomizedtesting</groupId>
1204+
<artifactId>junit4-maven-plugin</artifactId>
1205+
<configuration>
1206+
<argLine>${tests.jvm.argline}</argLine>
1207+
</configuration>
1208+
</plugin>
1209+
</plugins>
1210+
</build>
1211+
</profile>
1212+
<!-- jacoco coverage profile. This will insert -jagent -->
1213+
<profile>
1214+
<id>coverage</id>
1215+
<activation>
1216+
<property>
1217+
<name>tests.coverage</name>
1218+
<value>true</value>
1219+
</property>
1220+
</activation>
1221+
<dependencies>
1222+
<dependency>
1223+
<!-- must be on the classpath -->
1224+
<groupId>org.jacoco</groupId>
1225+
<artifactId>org.jacoco.agent</artifactId>
1226+
<classifier>runtime</classifier>
1227+
<version>0.6.4.201312101107</version>
1228+
<scope>test</scope>
1229+
</dependency>
1230+
</dependencies>
1231+
<build>
1232+
<plugins>
1233+
<plugin>
1234+
<groupId>org.jacoco</groupId>
1235+
<artifactId>jacoco-maven-plugin</artifactId>
1236+
<version>0.6.4.201312101107</version>
1237+
<executions>
1238+
<execution>
1239+
<id>default-prepare-agent</id>
1240+
<goals>
1241+
<goal>prepare-agent</goal>
1242+
</goals>
1243+
</execution>
1244+
<execution>
1245+
<id>default-report</id>
1246+
<phase>prepare-package</phase>
1247+
<goals>
1248+
<goal>report</goal>
1249+
</goals>
1250+
</execution>
1251+
<execution>
1252+
<id>default-check</id>
1253+
<goals>
1254+
<goal>check</goal>
1255+
</goals>
1256+
</execution>
1257+
</executions>
1258+
<configuration>
1259+
<excludes>
1260+
<exclude>jsr166e/**</exclude>
1261+
<exclude>jsr166y/**</exclude>
1262+
<exclude>org/apache/lucene/**</exclude>
1263+
</excludes>
1264+
</configuration>
1265+
</plugin>
1266+
</plugins>
1267+
</build>
1268+
</profile>
1269+
</profiles>
11961270
</project>

0 commit comments

Comments
 (0)