java - SWTException in SWTBot-Test: Why is it thrown in Tycho+Surefire? -
i swtexception:invalid thread access
of swtbot-test. turn green when started eclipse, problem must inside pom.xml guess. how solve this?
i use following arguments , dependencies in pom.xml of test-fragment:
<!-- language: lang-xml --> <build> <plugins> <plugin> <groupid>org.eclipse.tycho</groupid> <artifactid>tycho-surefire-plugin</artifactid> <version>${tycho.version}</version> <configuration> <testfailureignore>true</testfailureignore> <failifnotests>false</failifnotests> <forkedprocesstimeoutinseconds>300</forkedprocesstimeoutinseconds> <useuiharness>true</useuiharness> <useuithread>false</useuithread> <showeclipselog>true</showeclipselog> <dependencies> <dependency> <type>eclipse-plugin</type> <artifactid>my.host.ui.bundle</artifactid> <version>0.0.0</version> </dependency> <dependency> <type>p2-installable-unit</type> <artifactid>org.hamcrest</artifactid> <version>1.1.0</version> </dependency> <dependency> <type>installable-unit</type> <artifactid>org.eclipse.ui</artifactid> <version>0.0.0</version> </dependency> <dependency> <type>installable-unit</type> <artifactid>org.eclipse.ui.workbench</artifactid> <version>0.0.0</version> </dependency> <dependency> <type>p2-installable-unit</type> <artifactid>org.eclipse.swtbot.eclipse.core</artifactid> <version>2.0.4</version> </dependency> <dependency> <type>p2-installable-unit</type> <artifactid>org.eclipse.swtbot.eclipse.finder</artifactid> <version>2.0.4</version> </dependency> <dependency> <type>p2-installable-unit</type> <artifactid>org.eclipse.swtbot.junit4_x</artifactid> <version>2.0.4</version> </dependency> <dependency> <type>p2-installable-unit</type> <artifactid>org.eclipse.swtbot.swt.finder</artifactid> <version>2.0.4</version> </dependency> <dependency> <type>p2-installable-unit</type> <artifactid>org.eclipse.swtbot.eclipse.finder</artifactid> <version>2.0.4</version> </dependency> <dependency> <type>p2-nstallable-unit</type> <artifactid>org.eclipse.ui.navigator</artifactid> <version>0.0.0</version> </dependency> <dependency> <type>p2-installable-unit</type> <artifactid>org.eclipse.ui.views</artifactid> <version>0.0.0</version> </dependency> </dependencies> </configuration> </plugin> </plugins> </build>
if you're on osx, cf. this thread
otherwise, pls. provide more detail failing test
Comments
Post a Comment