Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsUnit tests on a e4 Application.
https://www.eclipse.org/forums/index.php/mv/msg/449205/1001270/#msg_1001270
There are many e4 Objects Injected into this method, the injected objects require other e4 objects and so on.
So I need the e4 Application to be started, bevore the test, in order for all that transitive depepndencies to be sattisfied.
Is there a possibility to start the e4 Application, bevore the Test is started?]]>Alex Kipling2013-01-16T11:08:04-00:00Re: Unit tests on a e4 Application.
https://www.eclipse.org/forums/index.php/mv/msg/449205/1001287/#msg_1001287
http://www.eclipse.org/swtbot/
This is definitely what your are looking for.
Unfortunately there are still some issues regarding e4. I think you can find out about those issues at their wiki or documentation somewhere. But they are definitely working on those issues at the moment. ]]>Dirk Fauth2013-01-16T11:56:44-00:00Re: Unit tests on a e4 Application.
https://www.eclipse.org/forums/index.php/mv/msg/449205/1001800/#msg_1001800
> Is there a possibility to start the e4 Application, bevore the Test is
> started?
You'll probably face a critical issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=296599 . This makes almost
impossible to test e4 applications with PDE.
However, there is no problem if you use Tycho. You can set the
application argument of Tycho-surefire-plugin to your e4 application,
and make sure the e4 bundles and your application are in the
classpath/dependencies. Then your test plugin will work well.