Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370290

Summary: test runtime should not include optional dependencies
Product: z_Archived Reporter: Igor Fedorenko <igor>
Component: TychoAssignee: Project Inbox <tycho-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: mistria, t-oberlies
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Igor Fedorenko CLA 2012-01-31 21:51:19 EST
This is a follow-up to bug 351842 and bug 367701.

Test runtime should not include optional dependencies of 'this' reactor projects, i.e. the test project, regardless of <optionalDependencies> dependency resolution configuration parameter. All desired dependencies should be included to the test runtime via <dependencies> tycho-surefire-plugin configuration paramater.

Workaround is to explicitly configu optionalDependencies=ignore for the test project.
Comment 1 Mickael Istria CLA 2020-06-29 09:01:35 EDT
(In reply to Igor Fedorenko from comment #0)
> Test runtime should not include optional dependencies of 'this' reactor
> projects,

I don't get why they should or should not. It seems to me there is no behavior that is always better than the other. So let's stick to the one that seems consistent with dependency resolution and let people who don't want optional dependencies explicitly exclude them.