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',
|
||||
exclusionPattern: '' +
|
||||
// build tools
|
||||
'**/org/eclipse/jetty/ant/**' + ',**/org/eclipse/jetty/maven/**' +
|
||||
',**/org/eclipse/jetty/jspc/**' +
|
||||
'**/org/eclipse/jetty/ant/**' +
|
||||
',*/org/eclipse/jetty/maven/its/**' +
|
||||
',**/org/eclipse/jetty/its/**' +
|
||||
// example code / documentation
|
||||
',**/org/eclipse/jetty/embedded/**' + ',**/org/eclipse/jetty/asyncrest/**' +
|
||||
',**/org/eclipse/jetty/embedded/**' +
|
||||
',**/org/eclipse/jetty/asyncrest/**' +
|
||||
',**/org/eclipse/jetty/demo/**' +
|
||||
// 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/http/spi/**' +
|
||||
// test classes
|
||||
',**/org/eclipse/jetty/tests/**' + ',**/org/eclipse/jetty/test/**',
|
||||
',**/org/eclipse/jetty/tests/**' +
|
||||
',**/org/eclipse/jetty/test/**',
|
||||
execPattern: '**/target/jacoco.exec',
|
||||
classPattern: '**/target/classes',
|
||||
sourcePattern: '**/src/main/java'
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
<name>Jetty :: Jetty JSPC Maven Plugin</name>
|
||||
<properties>
|
||||
<bundle-symbolic-name>${project.groupId}.jspc.plugin</bundle-symbolic-name>
|
||||
<jacoco.skip>true</jacoco.skip>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
<bundle-symbolic-name>${project.groupId}.maven.plugin</bundle-symbolic-name>
|
||||
<jetty.stopKey>FREEBEER</jetty.stopKey>
|
||||
<jetty.jvmArgs></jetty.jvmArgs>
|
||||
<jacoco.skip>true</jacoco.skip>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
|
|
13
pom.xml
13
pom.xml
|
@ -327,8 +327,6 @@
|
|||
<excludes>
|
||||
<!-- build tools -->
|
||||
<exclude>**/org/eclipse/jetty/ant/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/maven/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/jspc/**</exclude>
|
||||
<!-- example code / documentation -->
|
||||
<exclude>**/org/eclipse/jetty/embedded/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/asyncrest/**</exclude>
|
||||
|
@ -352,6 +350,17 @@
|
|||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
</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>
|
||||
<id>jacoco-site</id>
|
||||
<phase>package</phase>
|
||||
|
|
Loading…
Reference in New Issue