Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Why eclipse-test-plugin sources are main sources in Maven world?

On 12/20/2012 02:46 PM, Julien HENRY wrote:
But now Sonar is able to analyze test source code with a specific rule set. The problem is that Sonar Maven plugin uses Maven model to know where are main code and test code. We could ask for a hack in Sonar Maven plugin to make a special case for module with packaging=eclipse-test-plugin but IMHO it seems more natural/logical to ask Tycho to put source roots from build.properties in maven model test source roots. I just wanted to know if there was a reason why it is not already the case (maybe technical limitation).
I think that by default test sources don't get packaged and are not part of the artifact, which is not good for Eclipse plugins.
However it may be possible to have eclipse-test-plugin consider source folders as test roots, and to have it override the default packaging to put testClasses in jar. So it does not affect the output of the build, and is more Maven/Sonar-compliant. This sounds like a valid enhancement request.
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top