changeset 212:7c1e56d64667

Add THERMOSTAT_GATEWAY_HOME back to integration test surefire config Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-July/024288.html
author Jie Kang <jkang@redhat.com>
date Tue, 25 Jul 2017 09:02:08 -0400
parents a94c8f8c4c2b
children cf039006fb0c
files tests/integration-tests/pom.xml
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/integration-tests/pom.xml	Fri Jul 21 13:21:17 2017 -0400
+++ b/tests/integration-tests/pom.xml	Tue Jul 25 09:02:08 2017 -0400
@@ -80,6 +80,15 @@
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                     <skip>true</skip>
+                    <environmentVariables>
+                        <!--
+                        intellij can use this variable when running tests within IDE,
+                        but cannot draw it from the maven-failsafe declaration. Having
+                        it also declared here allows developers to run integration
+                        tests from IDE with less hassle
+                        -->
+                        <THERMOSTAT_GATEWAY_HOME>${project.build.directory}/../../../distribution/target/image</THERMOSTAT_GATEWAY_HOME>
+                    </environmentVariables>
                 </configuration>
             </plugin>
             <plugin>