summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlijinyang <[email protected]>2024-07-04 14:44:53 +0800
committerlijinyang <[email protected]>2024-07-04 14:44:53 +0800
commit5409f261b5183f7b1d91f0ac0f64386d7edb8dbe (patch)
tree05c3dd2a172709b8c33448c430a0f3a852837726
parent37e889f245072798ad2c383fab19764d1bb4d5db (diff)
fix:增加跳过单元测试功能
-rw-r--r--pom.xml8
-rw-r--r--src/test/java/com/mesa/reportservice/service/impl/QueryGatewayServiceImplTest.java4
2 files changed, 9 insertions, 3 deletions
diff --git a/pom.xml b/pom.xml
index 92fde25..236b8a3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -296,7 +296,13 @@
</execution>
</executions>
</plugin>
-
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>true</skipTests>
+ </configuration>
+ </plugin>
<plugin>
<groupId>com.mesalab.xjar-maven-plugin</groupId>
<artifactId>mesalab-xjar-maven-plugin</artifactId>
diff --git a/src/test/java/com/mesa/reportservice/service/impl/QueryGatewayServiceImplTest.java b/src/test/java/com/mesa/reportservice/service/impl/QueryGatewayServiceImplTest.java
index 62d19b2..aad4e29 100644
--- a/src/test/java/com/mesa/reportservice/service/impl/QueryGatewayServiceImplTest.java
+++ b/src/test/java/com/mesa/reportservice/service/impl/QueryGatewayServiceImplTest.java
@@ -101,12 +101,12 @@ public class QueryGatewayServiceImplTest extends ReportServiceApplicationTests {
Assert.assertTrue(httpResult.getCode() == HttpStatus.NOT_FOUND.value());
}
- /*@Test
+ @Test
public void highLatencyQuerySuccess() throws IOException {
String sql = this.jsonToInParameter("parameters/queryGatewayTest.json", "highLatencyQuerySuccess", String.class);
HttpResult httpResult = queryGatewayService.queryJob(sql);
Assert.assertTrue(httpResult.getCode() == HttpStatus.OK.value());
- }*/
+ }
@Test
public void highLatencyQueryCancel() throws IOException {