|
|
|
|
Re: run tests with maven/tycho headless [message #1722167 is a reply to message #1721838] |
Wed, 03 February 2016 03:19   |
Eclipse User |
|
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05251 seconds