zoukankan      html  css  js  c++  java
  • maven-surefire-plugin

    <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.18.1</version>
            <configuration>
              <excludedGroups>com.test.IntegrationTest</excludedGroups>
            </configuration>
          </plugin>
     <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-failsafe-plugin</artifactId>
            <version>2.19.1</version>
            <configuration>
              <skipTests>${skip.integration.tests}</skipTests>
              <includes>
                <include>**/*.java</include>
              </includes>
              <groups>com.test.IntegrationTest</groups>
            </configuration>
            <executions>
              <execution>
                <goals>
                  <goal>integration-test</goal>
                  <goal>verify</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
    public interface IntegrationTest {}

    Mark your test classes

    Add the category annotation to the top of your test class. It takes the name of your new interface.

    import org.junit.experimental.categories.Category;
    @Category(IntegrationTest.class)
    public class ExampleIntegrationTest{
    
     @Test
     public void longRunningServiceTest() throws Exception {
         
     }
    }
  • 相关阅读:
    python之sorted函数的三个参数
    python 局部变量和全局变量
    简单的理解https的连接过程
    关于web服务接口测试的一些问题及答案
    常用函数
    服务器并发处理能力
    JEMETER 录制
    resin
    loadrunner 计数器
    memcached and redis
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/8479600.html
Copyright © 2011-2022 走看看