Skip to content

Commit

Permalink
feat: 优化单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Jun 12, 2024
1 parent f98cd67 commit dd53bee
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.jetlinks</groupId>
Expand Down Expand Up @@ -162,12 +163,15 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.0</version>
<version>0.8.8</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>jacocoArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>report</id>
Expand Down Expand Up @@ -217,27 +221,18 @@
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.15</version>
</dependency>
</dependencies>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<version>2.22.0</version>
<configuration>
<includes>
<include>**/*Test.java</include>
<include>**/*Test.groovy</include>
<include>**/*Tests.java</include>
<include>**/*Test.groovy</include>
<include>**/*Spec.java</include>
</includes>
<argLine>-Dfile.encoding=UTF-8 ${jacocoArgLine}</argLine>
</configuration>
</plugin>

Expand Down

0 comments on commit dd53bee

Please sign in to comment.