xml Bare bones配置Failsafe插件的pom.xml示例(用于集成测试)。 http://maven.apache.org/surefire/maven-failsafe-plu

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Bare bones配置Failsafe插件的pom.xml示例(用于集成测试)。 http://maven.apache.org/surefire/maven-failsafe-plu相关的知识,希望对你有一定的参考价值。

<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.mariodiana.app</groupId>
  <artifactId>my-app</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>my-app</name>
  <url>http://www.mariodiana.com</url>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  </properties>
  <dependencies>
    <dependency>
	  <groupId>junit</groupId>
	  <artifactId>junit</artifactId>
	  <version>4.12</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <!-- Failsafe: Name test files *IT.java or *ITCase.java and place in test directory. -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>2.18.1</version>
        <executions>
          <execution>
            <goals>
              <goal>integration-test</goal>
              <!-- Use "mvn verify" to run tests. Executes only if unit tests pass. -->
              <goal>verify</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

以上是关于xml Bare bones配置Failsafe插件的pom.xml示例(用于集成测试)。 http://maven.apache.org/surefire/maven-failsafe-plu的主要内容,如果未能解决你的问题,请参考以下文章

无法使用bare-bones-digest库在Android中实现Digest Auth

HTML Bare Bones HTML5框架,4节布局

在 Xcode 中打开权利会阻止 Bare Bones 应用程序启动

集成测试无法启动(Failsafe,Maven)

hibernate二级缓存配置,系统提示找不到ehcache.xml的配置文件

centos7下git --bare服务器简单配置