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的主要内容,如果未能解决你的问题,请参考以下文章