|
|
|
Re: Invoke IncQuery in JUnit test cases [message #1027311 is a reply to message #1024444] |
Tue, 26 March 2013 20:57   |
Istvan Rath Messages: 59 Registered: July 2009 |
Member |
|
|
Hi Jan,
Jan Reimann wrote:
> Hi Istvan,
>
> Istvan Rath wrote:
>> Hi Jan, are you trying to execute a "Plug-in JUnit Test" run
> No I wanted to run it in a plain JUnit test.
>
>> configuration? Because basically that is the only feasible way (at the
>> moment) of achieving what you wish to do. (We also test IncQuery this
> way.)
> Is it planned to make plain tests available, too?
Running IncQuery is still only supported in an Eclipse-aware runtime
configuration, as injectors and the plug-in registry are necessary for
the IncQuery Runtime to work.
Note that headless execution *is* supported, see e.g. the headless
example mentioned in
http://wiki.eclipse.org/EMFIncQuery/UserDocumentation/API, and also
JUnit Plug-in tests do work (see e.g. our test suites in Git).
So basically, in order to get your tests on the build server running, I
recommend to simply configure it in a way to execute your tests in a
junit plugin test environment. (We achieve this in our Maven/Tycho
environment by configuring the test modules for the
"eclipse-test-plugin" packaging, see
http://git.eclipse.org/c/incquery/org.eclipse.incquery.git/tree/tests/org.eclipse.incquery.runtime.tests/pom.xml)
I assume that this can (should?) be done anyway since you wrote that you
want to test your Eclipse plugins (which should also require an
Eclipse-aware environment).
Regards
Istvan
|
|
|
Re: Invoke IncQuery in JUnit test cases [message #1027744 is a reply to message #1027311] |
Wed, 27 March 2013 11:08  |
Eclipse User |
|
|
|
Hi Istvan,
thanks for your reply.
Istvan Rath wrote:
> Running IncQuery is still only supported in an Eclipse-aware runtime
> configuration, as injectors and the plug-in registry are necessary for
> the IncQuery Runtime to work.
Ok
> Note that headless execution *is* supported, see e.g. the headless
> example mentioned in
> http://wiki.eclipse.org/EMFIncQuery/UserDocumentation/API, and also
> JUnit Plug-in tests do work (see e.g. our test suites in Git).
Ok, then I got this wrong. I thought that headless isn't supported either.
> So basically, in order to get your tests on the build server running, I
> recommend to simply configure it in a way to execute your tests in a
> junit plugin test environment. (We achieve this in our Maven/Tycho
> environment by configuring the test modules for the
> "eclipse-test-plugin" packaging, see
>
http://git.eclipse.org/c/incquery/org.eclipse.incquery.git/tree/tests/org.eclipse.incquery.runtime.tests/pom.xml)
thanks a lot. I'll try this.
> I assume that this can (should?) be done anyway since you wrote that you
> want to test your Eclipse plugins (which should also require an
> Eclipse-aware environment).
No, until now I implemented my tests without Eclipse runtime dependencies.
best regards
Jan
|
|
|
Powered by
FUDForum. Page generated in 0.02088 seconds