Maven test timeout设置
我们知道,当TC运行超时时,该TC就会fail,所以对一些执行时间较长的TC呢,我们可以在maven中进行配置,从而保证其可以顺利执行通过。
?
??????????? <plugin>
??????????????? <groupId>org.apache.maven.plugins</groupId>
??????????????? <artifactId>maven-surefire-plugin</artifactId>
??????????????? <configuration>
??????????????????? <timeout>3000</timeout>
??????????????????? <junitArtifactName>com.alibaba.external:test.junit.junit-all</junitArtifactName>
??????????????? </configuration>
??????????? </plugin>