Allow to execute tests against a remote server.

Update Maven pom to use "redis-host" and "redis-port" env. properties.
Default values point to localhost:6379.

Tests updated to use this properties and also defaulted to localhost:6379.
This commit is contained in:
Yaourt
2010-09-13 10:55:58 +02:00
parent 9211335f0d
commit d61f4d79d8
5 changed files with 185 additions and 96 deletions

17
pom.xml
View File

@@ -12,6 +12,12 @@
<scope>compile</scope>
</dependency>
</dependencies>
<properties>
<redis-host>localhost</redis-host>
<redis-port>6379</redis-port>
</properties>
<build>
<plugins>
<plugin>
@@ -23,6 +29,17 @@
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.6</version>
<configuration>
<systemPropertyVariables>
<redis-host>${redis-host}</redis-host>
<redis-port>${redis-port}</redis-port>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>