|
Re: run tests with maven/tycho headless [message #1719333 is a reply to message #1718738] |
Thu, 07 January 2016 10:33 |
|
This is what I use in the POM for my GUI tests plugin, works fine.
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<product>my.product</product>
<application>my.application</application>
</configuration>
</plugin>
</plugins>
</build>
|
|
|
|
|
Re: run tests with maven/tycho headless [message #1722167 is a reply to message #1721838] |
Wed, 03 February 2016 08:19 |
|
On 31/01/2016 22:58, Mickael Istria wrote:
> On 12/29/2015 05:42 PM, Fredy Setz wrote:
>> I wonder if there is a simple way to execute swtbot tests headless with
>> maven tycho build. Does anybody have such an example out there?
>
> See also
> https://wiki.eclipse.org/Tycho/FAQ#How_to_use_SWTBot_or_some_UI_tool_for_testing.3F
> and
> https://eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html#testRuntime
>
>
Fredy
as Mickael suggested, you might want to have a look at
test-mojo.html#testRuntime; that's quite a powerful feature, though I
had a few problems to set it up at the beginning ;)
You might want to have a look at this example
https://github.com/LorenzoBettini/javamm/blob/master/javamm.swtbot.tests/pom.xml
In this example, I run the SWTBot tests against a provisioned Eclipse
(with my features/bundles installed). This gives you much more
confidence, since it actually simulates what your users have once they
installed your features in an Eclipse.
Hope this helps
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04483 seconds