Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370290 - test runtime should not include optional dependencies
Summary: test runtime should not include optional dependencies
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-31 21:51 EST by Igor Fedorenko CLA
Modified: 2021-04-28 16:54 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.