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

Bug 356622

Summary: eclipse-feature dependencies in test configuration is silently ignored
Product: z_Archived Reporter: Tobias Oberlies <t-oberlies>
Component: TychoAssignee: Tobias Oberlies <t-oberlies>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Tobias Oberlies CLA 2011-09-02 12:17:35 EDT
The following configuration has no effect. I would expect that the feature is added to the test runtime.

<plugin>
	<groupId>org.eclipse.tycho</groupId>
	<artifactId>tycho-surefire-plugin</artifactId>
	<configuration>
		<dependencies>
			<dependency>
				<type>eclipse-feature</type>
				<artifactId>my-locally-built-feature</artifactId>
				<version>0.0.0</version>
			</dependency>
		</dependencies>
	</configuration>
</plugin>

Although the workaround is fairly easy (append ".feature.group" to the artifactId and change the type to  "p2-installable-unit"), I still consider this a major bug. Explicitly adding features to the test runtime becomes much more important in 0.13.0, because Tycho no longer magically adds the entire target platform to the runtime.
Comment 1 Tobias Oberlies CLA 2011-09-05 07:41:39 EDT
Fixed with 7e5439e. The example in the description now works.
Comment 2 Tobias Oberlies CLA 2011-09-05 07:41:59 EDT
As of last comment.