Skip to content

Commit 0674ede

Browse files
committed
Add maven failsafe plugin for running integration tests.
Add the maven failsafe plugin for running integration tests. Maven failsafe is like maven surefire, but it ensures that various cleanup is called when integration tests fail. It hooks into the existing release workflow, so integration tests run before install or release. The integration tests may be run through $mvn integration-test
1 parent b5fce22 commit 0674ede

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,32 @@
193193
</systemProperties>
194194
</configuration>
195195
</plugin>
196+
197+
<plugin>
198+
<groupId>org.apache.maven.plugins</groupId>
199+
<artifactId>maven-failsafe-plugin</artifactId>
200+
<version>3.0.0-M2</version>
201+
<configuration>
202+
<useSystemClassLoader>false</useSystemClassLoader>
203+
<systemProperties>
204+
<property>
205+
<name>sqlite4java.library.path</name>
206+
<value>${project.build.directory}/test-lib</value>
207+
</property>
208+
</systemProperties>
209+
<includes>
210+
<include>**/*ITCase.java</include>
211+
</includes>
212+
</configuration>
213+
<executions>
214+
<execution>
215+
<goals>
216+
<goal>integration-test</goal>
217+
<goal>verify</goal>
218+
</goals>
219+
</execution>
220+
</executions>
221+
</plugin>
196222
</plugins>
197223
</build>
198224

0 commit comments

Comments
 (0)