Bug 240373 - Provide project setting for default JUnit classpath
Summary: Provide project setting for default JUnit classpath
Status: RESOLVED DUPLICATE of bug 41353
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-10 14:28 EDT by csccsccsc CLA
Modified: 2008-08-14 08:22 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 csccsccsc CLA 2008-07-10 14:28:31 EDT
When doing rightclick->RunAsJunit on a specific Junit class or method a launcher is created and run taking the classpath from the project settings.

However our runtime project setting need to differ to our compile time project settings.

We have a bridge pattern in place and use the project classpath setting to enforce that no developer accidentally includes references to a specific implementation and only goes through the project that is the abstraction layer.

Our normal application launcher and global JUnit launcher include the classpath for the implementation project.

However when Run->AsJunit auto-creates the launcher and auto-launches it uses our project settings only and so fails at runtime.

The normal technique is to run once expecting it to fail and then amend the launcher and run again.

Some project setting would be preferable where we could specify additional projects to include during JUnit run.
Comment 1 Jerome Lanneluc CLA 2008-08-14 06:46:21 EDT
Not sure if this is UI or Debug.
Comment 2 Dani Megert CLA 2008-08-14 08:22:20 EDT

*** This bug has been marked as a duplicate of bug 41353 ***