Hi, Trying to get some integration tests running. I've tried to minimize my pom, such that everything runs. I pasted my directory structure below. The maven-build-helper-plugin is used to include the integration-test src directory. From what I understand the maven-failsafe-plugin now automatically run the HelloIT test, because it ends in IT?
├── pom.xml ├── src │ ├── integration-test │ │ └── java │ │ └── integration │ │ └── HelloIT.java │ └── test │ └── java │ └── hello │ └── HelloTest.java └── target ├── classes └── test-classes ├── hello │ └── HelloTest.class └── integration └── HelloIT.class This is my pom: <project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>com.example.maven</groupId> <artifactId>separating</artifactId> <version>1.0.0</version> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.9.1</version> <executions> <!-- Add the integration-test source directory --> <execution> <id>add-integration-test-sources</id> <phase>generate-test-sources</phase> <goals> <goal>add-test-source</goal> </goals> <configuration> <sources> <source>src/integration-test/java</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.18</version> <executions> <execution> <id>integration-tests</id> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> <configuration> <skipTests>false</skipTests> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18</version> <configuration> <skipTests>false</skipTests> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> </dependencies> </project> And the integration test looks like this: package integration; import org.junit.*; import static org.junit.Assert.*; public class HelloIT { private String hello = "Heisan!"; @Test public void helloIntegrationTest() { assertTrue(hello.equals(hello)); System.out.println("====================================================="); System.out.println("Greetings From the Hello the Integration Test!"); System.out.println("====================================================="); } } Thoughts? TIA, - Ole --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org