Browse Source

Merge pull request #733 from dailidong/dev

add embedded h2 db and jacoco report plugin for jenkins
pull/2/head
dailidong 5 years ago committed by GitHub
parent
commit
1e6d6b5fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 36
      pom.xml

36
pom.xml

@ -111,8 +111,14 @@
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.3.163</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>cn.analysys</groupId>
@ -446,8 +452,34 @@
<includes>
<include>**/*Test*.java</include><!--run test classes-->
</includes>
<skip>true</skip><!--skip run test classes-->
<!-- <skip>true</skip> -->
</configuration>
</plugin>
<!-- jenkins plugin jacoco report-->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.4</version>
<configuration>
<destFile>target/jacoco.exec</destFile>
<dataFile>target/jacoco.exec</dataFile>
</configuration>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>

Loading…
Cancel
Save