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?

Please note also that having a convention that the test fragment being named from the name of the tested bundle with test or tests appended is the same as having a convention that test sources is located under src/test/java instead of src/main/java

Jeff 


On Fri, Jan 17, 2014 at 6:10 PM, Mickael Istria <mistria@xxxxxxxxxx> wrote:
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

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top