Add jetty maven plugin ITs as part of code coverage as we do it :) (#7962)
* enable of jacoco coverage for maven its plugin Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
2e18276ff5
commit
c41c73b8de
|
@ -21,17 +21,21 @@ pipeline {
|
||||||
jacoco inclusionPattern: '**/org/eclipse/jetty/**/*.class',
|
jacoco inclusionPattern: '**/org/eclipse/jetty/**/*.class',
|
||||||
exclusionPattern: '' +
|
exclusionPattern: '' +
|
||||||
// build tools
|
// build tools
|
||||||
'**/org/eclipse/jetty/ant/**' + ',**/org/eclipse/jetty/maven/**' +
|
'**/org/eclipse/jetty/ant/**' +
|
||||||
',**/org/eclipse/jetty/jspc/**' +
|
',*/org/eclipse/jetty/maven/its/**' +
|
||||||
|
',**/org/eclipse/jetty/its/**' +
|
||||||
// example code / documentation
|
// example code / documentation
|
||||||
',**/org/eclipse/jetty/embedded/**' + ',**/org/eclipse/jetty/asyncrest/**' +
|
',**/org/eclipse/jetty/embedded/**' +
|
||||||
|
',**/org/eclipse/jetty/asyncrest/**' +
|
||||||
',**/org/eclipse/jetty/demo/**' +
|
',**/org/eclipse/jetty/demo/**' +
|
||||||
// special environments / late integrations
|
// special environments / late integrations
|
||||||
',**/org/eclipse/jetty/gcloud/**' + ',**/org/eclipse/jetty/infinispan/**' +
|
',**/org/eclipse/jetty/gcloud/**' +
|
||||||
|
',**/org/eclipse/jetty/infinispan/**' +
|
||||||
',**/org/eclipse/jetty/osgi/**' +
|
',**/org/eclipse/jetty/osgi/**' +
|
||||||
',**/org/eclipse/jetty/http/spi/**' +
|
',**/org/eclipse/jetty/http/spi/**' +
|
||||||
// test classes
|
// test classes
|
||||||
',**/org/eclipse/jetty/tests/**' + ',**/org/eclipse/jetty/test/**',
|
',**/org/eclipse/jetty/tests/**' +
|
||||||
|
',**/org/eclipse/jetty/test/**',
|
||||||
execPattern: '**/target/jacoco.exec',
|
execPattern: '**/target/jacoco.exec',
|
||||||
classPattern: '**/target/classes',
|
classPattern: '**/target/classes',
|
||||||
sourcePattern: '**/src/main/java'
|
sourcePattern: '**/src/main/java'
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
<name>Jetty :: Jetty JSPC Maven Plugin</name>
|
<name>Jetty :: Jetty JSPC Maven Plugin</name>
|
||||||
<properties>
|
<properties>
|
||||||
<bundle-symbolic-name>${project.groupId}.jspc.plugin</bundle-symbolic-name>
|
<bundle-symbolic-name>${project.groupId}.jspc.plugin</bundle-symbolic-name>
|
||||||
<jacoco.skip>true</jacoco.skip>
|
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
<bundle-symbolic-name>${project.groupId}.maven.plugin</bundle-symbolic-name>
|
<bundle-symbolic-name>${project.groupId}.maven.plugin</bundle-symbolic-name>
|
||||||
<jetty.stopKey>FREEBEER</jetty.stopKey>
|
<jetty.stopKey>FREEBEER</jetty.stopKey>
|
||||||
<jetty.jvmArgs></jetty.jvmArgs>
|
<jetty.jvmArgs></jetty.jvmArgs>
|
||||||
<jacoco.skip>true</jacoco.skip>
|
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
13
pom.xml
13
pom.xml
|
@ -327,8 +327,6 @@
|
||||||
<excludes>
|
<excludes>
|
||||||
<!-- build tools -->
|
<!-- build tools -->
|
||||||
<exclude>**/org/eclipse/jetty/ant/**</exclude>
|
<exclude>**/org/eclipse/jetty/ant/**</exclude>
|
||||||
<exclude>**/org/eclipse/jetty/maven/**</exclude>
|
|
||||||
<exclude>**/org/eclipse/jetty/jspc/**</exclude>
|
|
||||||
<!-- example code / documentation -->
|
<!-- example code / documentation -->
|
||||||
<exclude>**/org/eclipse/jetty/embedded/**</exclude>
|
<exclude>**/org/eclipse/jetty/embedded/**</exclude>
|
||||||
<exclude>**/org/eclipse/jetty/asyncrest/**</exclude>
|
<exclude>**/org/eclipse/jetty/asyncrest/**</exclude>
|
||||||
|
@ -352,6 +350,17 @@
|
||||||
<goal>prepare-agent</goal>
|
<goal>prepare-agent</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>jacoco-setup-m-invoker-p</id>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<configuration>
|
||||||
|
<!-- Enable recording of coverage during execution of maven-invoker-plugin -->
|
||||||
|
<propertyName>invoker.mavenOpts</propertyName>
|
||||||
|
</configuration>
|
||||||
|
<goals>
|
||||||
|
<goal>prepare-agent</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<id>jacoco-site</id>
|
<id>jacoco-site</id>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
|
|
Loading…
Reference in New Issue