Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Is there a way to have src/ and test/ in the same eclipse plug-in?

On 01/17/2014 04:39 PM, Jeremie Bresson wrote:
=> What would be the approach to build the plugin and run the tests in such a case?
Tycho-surefire-plugin uses the output jarred plugin directly in the test runtime, so tests have to be in this jarred plugin (or another plugin if you set testSuite/testClass parameters) and that there is no way to find tests that are in a folder somewhere on filesystem (OSGi/Eclipse wants bundles).

=> Do you have some pointers of developers who experiment this approach?

You might have difficulties to find that. Just ask yourself "is it worth it?". IMHO, the answer is that the approach used by Eclipse (test in a dedicated plugin or fragment) works fine and is actually a good practice when it comes to run tests on existing applications, out of the build. So most people probably stick with the Eclipse way, which happens to work fine.
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top