Browse Source

add embedded h2 db

add jacoco report plugin for jenkins
pull/3/MERGE
lidongdai 5 years ago
parent
commit
ead6d7b5d2
  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>
@ -440,8 +446,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