Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] running swtbot with my eclipse target platform without shipping it


On 05/23/2013 11:16 PM, Peter Kahn wrote:
We are creating an eclipse app and have swtbot plugins to run tests against it.  If we add our custom plugins, SWTbot plugins and our SWTbot tests to the target platform we can run the tests against our app.  This also means we would ship the tests with the app.
I don't think it means you have to ship test with the application. What you ship as part of your application (the packaging) is usually controlled by the category.xml or .product file. If you don't put SWTBot not tests in those files, they're not shipped.

On 05/24/2013 07:07 AM, Tonny Madsen wrote:
Wouldn't it be very nice, if we could separate the two sets? Have two target platforms - one for the product and one with the additional stuff needed for testing - as used in maven. And yes, I know this is not supported by PDE either...
Actually, you can have 2 (runtime + test) different target-platforms and build your actual business code with "runtime TP" and you build and run your tests with the "test TP" in the same reactor. It's just a matter of overriding the target-platform-configuration in the poms.
There's also a way to make test TP an extension of runtime TP. Although TP has to be built and installed separately ( a side effect of [0] I guess), we wrote a Mojo that merges target definition and allow a target to be built on top of the other [1] [2].

That allow us to have stacked Target Platforms as an implementation of "scopes".


Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top