diff options
| author | lijinyang <[email protected]> | 2024-07-04 14:44:53 +0800 |
|---|---|---|
| committer | lijinyang <[email protected]> | 2024-07-04 14:44:53 +0800 |
| commit | 5409f261b5183f7b1d91f0ac0f64386d7edb8dbe (patch) | |
| tree | 05c3dd2a172709b8c33448c430a0f3a852837726 | |
| parent | 37e889f245072798ad2c383fab19764d1bb4d5db (diff) | |
fix:增加跳过单元测试功能
| -rw-r--r-- | pom.xml | 8 | ||||
| -rw-r--r-- | src/test/java/com/mesa/reportservice/service/impl/QueryGatewayServiceImplTest.java | 4 |
2 files changed, 9 insertions, 3 deletions
@@ -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 { |
