I have a question about maven.
I have Unit Tests that have a file name ending in * Test and integration test, whose file name ends in * IT.
My understanding is that surefire will run the unit test, and failafe will run the integration test.
When I run: mvn clean install
Both unit test and integration tests run.
When I run:
mvn check
Both of these tests also run.
In any case, I can configure maven to use only: unit tests when using: mvn clean install. And when I use mvn check, only integration tests run?
My POM build section is as follows:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>failsafe-maven-plugin</artifactId>
<version>2.4.3-alpha-1</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
Many thanks