make tests to work on macOS when executed as part of the maven build

This commit is contained in:
Martin Lippert
2018-05-18 09:49:32 +02:00
parent 09c170730a
commit 40f615e339

View File

@@ -14,6 +14,25 @@
<version>0.0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<properties>
<test.argLine></test.argLine>
</properties>
<profiles>
<profile>
<id>osx</id>
<activation>
<property>
<name>java.vendor.url</name>
<value>http://www.apple.com/</value>
</property>
</activation>
<properties>
<test.argLine>-XstartOnFirstThread</test.argLine>
</properties>
</profile>
</profiles>
<build>
<plugins>
@@ -50,6 +69,8 @@
<configuration>
<forkedProcessTimeoutInSeconds>200</forkedProcessTimeoutInSeconds>
<includes>**/*Test.java</includes>
<useUIHarness>true</useUIHarness>
<argLine>${test.argLine}</argLine>
</configuration>
</plugin>
</plugins>