Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Running JUnit plugin tests for workspace-external projects
Running JUnit plugin tests for workspace-external projects [message #61061] Tue, 12 May 2009 10:36 Go to next message
Eclipse UserFriend
Originally posted by: sangamon.netcologne.de

Hi,

I have two plugin projects (the actual plugin and a JUnit plugin test
project) whose physical location is not inside the workspace, i.e. I
imported these projects without copying contents to workspace. Running
the plugin itself from an Eclipse application launch configuration works
fine, but when trying to run the test project, I get something like

Bundle initial@reference:file:../../../../work/git/xplugin/xplugin/ was
not resolved.

This used to work before when the projects were physically located
inside the workspace.

Is there any way to convince the JUnit launcher to accept these external
"links"?

Best regards,
Patrick
Re: Running JUnit plugin tests for workspace-external projects [message #61232 is a reply to message #61061] Tue, 12 May 2009 23:04 Go to previous messageGo to next message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
Your setup should work fine. I have many plugins and test plugins that are
external to the workspace and I don't have that problem when running tests.

In the launch configuration for the junit plugin test, check the
"Configuration" tab. That lists the directory where the OSGi configuration
is created. Try clearing that.

If you post more details, maybe I can help further.

"Patrick Roemer" <sangamon@netcologne.de> wrote in message
news:gubjfu$2lr$1@build.eclipse.org...
> Hi,
>
> I have two plugin projects (the actual plugin and a JUnit plugin test
> project) whose physical location is not inside the workspace, i.e. I
> imported these projects without copying contents to workspace. Running
> the plugin itself from an Eclipse application launch configuration works
> fine, but when trying to run the test project, I get something like
>
> Bundle initial@reference:file:../../../../work/git/xplugin/xplugin/ was
> not resolved.
>
> This used to work before when the projects were physically located
> inside the workspace.
>
> Is there any way to convince the JUnit launcher to accept these external
> "links"?
>
> Best regards,
> Patrick
Re: Running JUnit plugin tests for workspace-external projects [message #61607 is a reply to message #61232] Wed, 13 May 2009 21:08 Go to previous message
Eclipse UserFriend
Originally posted by: sangamon.netcologne.de

Responding to Will Horn:

> Your setup should work fine. I have many plugins and test plugins that are
> external to the workspace and I don't have that problem when running tests.

You're right, the problem was completely unrelated - I had added a new
dependency to the manifest and missed updating the launch configuration.
This coincided with the workspace restructuring, and the error message
led me to believe it was a path related problem. Thanks for your help,
and sorry for the noise.

Best regards,
Patrick
Re: Running JUnit plugin tests for workspace-external projects [message #597318 is a reply to message #61061] Tue, 12 May 2009 23:04 Go to previous message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
Your setup should work fine. I have many plugins and test plugins that are
external to the workspace and I don't have that problem when running tests.

In the launch configuration for the junit plugin test, check the
"Configuration" tab. That lists the directory where the OSGi configuration
is created. Try clearing that.

If you post more details, maybe I can help further.

"Patrick Roemer" <sangamon@netcologne.de> wrote in message
news:gubjfu$2lr$1@build.eclipse.org...
> Hi,
>
> I have two plugin projects (the actual plugin and a JUnit plugin test
> project) whose physical location is not inside the workspace, i.e. I
> imported these projects without copying contents to workspace. Running
> the plugin itself from an Eclipse application launch configuration works
> fine, but when trying to run the test project, I get something like
>
> Bundle initial@reference:file:../../../../work/git/xplugin/xplugin/ was
> not resolved.
>
> This used to work before when the projects were physically located
> inside the workspace.
>
> Is there any way to convince the JUnit launcher to accept these external
> "links"?
>
> Best regards,
> Patrick
Re: Running JUnit plugin tests for workspace-external projects [message #597424 is a reply to message #61232] Wed, 13 May 2009 21:08 Go to previous message
Eclipse UserFriend
Originally posted by: sangamon.netcologne.de

Responding to Will Horn:

> Your setup should work fine. I have many plugins and test plugins that are
> external to the workspace and I don't have that problem when running tests.

You're right, the problem was completely unrelated - I had added a new
dependency to the manifest and missed updating the launch configuration.
This coincided with the workspace restructuring, and the error message
led me to believe it was a path related problem. Thanks for your help,
and sorry for the noise.

Best regards,
Patrick
Previous Topic:Plugin services and communication
Next Topic:Rebuilding target platform without closing Eclipse
Goto Forum:
  


Current Time: Sat Jun 19 09:57:50 GMT 2021

Powered by FUDForum. Page generated in 0.02643 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top