Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Testing e(fx)clipse powered RCP applications
Testing e(fx)clipse powered RCP applications [message #1455483] Wed, 29 October 2014 12:24 Go to next message
Andres Almiray is currently offline Andres AlmirayFriend
Messages: 9
Registered: July 2009
Location: Basel
Junior Member

Hi, I want to raise awareness on the topic of testing. The following are some question/suggestion related to this subject.

1. What's the recommended setup for maven based unit testing?

2. What's the additional configuration required for running Spock based tests? This is probably an OSGi related question.

3. How can integration test (via tycho-surefire) can be configured so that the application is bootstrapped and collaborators are properly injected before tests?

4. TestFX appears to be the front runner project for testing JavaFX applications. As good as it is right now it fails at integration with other tools such as Eclipse 4. This is due to TestFx's base testing class taking charge of instantiating its own Application subclass, bypassing whatever e(fx)clipse requires for proper initialization. What then can be done for creating functional tests with TestFX?

Cheers,
Andres
Re: Testing e(fx)clipse powered RCP applications [message #1455503 is a reply to message #1455483] Wed, 29 October 2014 12:42 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
On 29.10.14 13:24, Andres Almiray wrote:
> Hi, I want to raise awareness on the topic of testing. The following are
> some question/suggestion related to this subject.
>
> 1. What's the recommended setup for maven based unit testing?

If you generated your projects using the wizards you already have the
perfect structure for JUnit-Testing

>
> 2. What's the additional configuration required for running Spock based
> tests? This is probably an OSGi related question.
>

Never worked with that. So can not comment on it

> 3. How can integration test (via tycho-surefire) can be configured so
> that the application is bootstrapped and collaborators are properly
> injected before tests?

You need one more projects:
* app.junit

I've attached you the one we used to generated for Jemmy where you see
how we configure it

>
> 4. TestFX appears to be the front runner project for testing JavaFX
> applications. As good as it is right now it fails at integration with
> other tools such as Eclipse 4. This is due to TestFx's base testing
> class taking charge of instantiating its own Application subclass,
> bypassing whatever e(fx)clipse requires for proper initialization. What
> then can be done for creating functional tests with TestFX?
>

I've already a bug to track addition of TestFX but I have not yet looked
into it.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=448622 I've already
started the IP-Process to get TestFX into the Eclipse Repos

Tom
  • Attachment: pom.xml
    (Size: 2.50KB, Downloaded 101 times)
Previous Topic:How to call dialogs and wizard declared in e4xmi-file ?
Next Topic:menu contribution with extension point
Goto Forum:
  


Current Time: Sat Apr 27 03:34:20 GMT 2024

Powered by FUDForum. Page generated in 3.15835 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top