|
|
|
Re: Tests [message #1412086 is a reply to message #1410701] |
Mon, 25 August 2014 09:00 |
Jeremie Bresson Messages: 1252 Registered: October 2011 |
Senior Member |
|
|
Thanks for asking the question here.
The structure you are describing is very common in plain maven project. When you work with plugins like in an eclipse scout application you need to organize you code as Judith told.
I have tried to ask this question on the Tycho Mailing list:
[tycho-user] Is there a way to have src/ and test/ in the same eclipse plug-in?
The answers I got are clear: you should not use the plain-maven approach.
In my opinion this is due to how dependencies are handled:
* Plain maven project:
Dependencies are defined in the pom.xml files, you can have different dependencies for the src/ and the test/ folder inside the same maven module.
* Maven Tycho project:
Dependencies are defined in the META-INF/MANIFEST.MF of the plugin (which is also a maven module). Even if you have 2 source folder src/ and test/ in your plugin, you can specify the dependencies only once.
If you follow this approach, this means that you will include testing dependencies into your productive code. This is not recommended.
I hope this helps.
Feel free to continue the discussion (here or on the tycho-user mailing list).
---
Related topic:
* [tycho-user]Splitting source and test artifacts
[Updated on: Thu, 04 September 2014 16:50] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04935 seconds