Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [eclipse-dev] Eclipse test infrastructure

Are you sure you’re test plugin is properly installed?  Both your test plugin and the plugin(s) it tests need to be installed.  Your test plugin should list the plugin(s) it tests as dependencies in its plugin.xml.  You can run the workbench and look at the configuration details to ensure you’re plugins are successfully installed, this might highlight some problem for you…

 

Paul.

 

--

Paul Burkley                        paul.burkley@xxxxxxxxx

Intel Communications Europe,        phone:  +353 61 477527

Dromore House, East Park,           fax:    +353 61 477406

Shannon, Ireland                    INET:       8-247-7527

 


From: eclipse-dev-admin@xxxxxxxxxxx [mailto:eclipse-dev-admin@xxxxxxxxxxx] On Behalf Of James Langley
Sent: 24 August 2004 16:27
To: eclipse-dev@xxxxxxxxxxx
Subject: [eclipse-dev] Eclipse test infrastructure

 

Hi,

 

I’m hoping someone can give me some pointers with the Eclipse testing infrastructure.  I’ve managed to get the unit tests to run from the command line using runtests and I would like to use this same infrastructure to run my own unit tests.  I’ve put my plugin into the plugins directory (and I’m running using the noclean option) and I’ve updated the tests.xml to include a new task for my tests.  My plugin has it’s own test.xml which follows the format of the Eclipse ones.  When I run this from the command line, I get the following error:

 

[echo] Running com.altera.nj.launch.tests.Nios2LaunchConfigurationDelegateTest

[java] Error: java.lang.IllegalArgumentException: No ClassLoader found for testplugin: com.altera.nj.launch.tests

[java] Java Result: 2

 

This seems to be caused by the call to:

 

Platform.getPluginRegistry().getPluginDescriptor(pluginName)

 

Inside EclipseTestRunner returning null.  Does anyone have any idea why this is happening and what I need to do to make it work?

 

Thanks in advance,

 

James Langley
Senior Software Engineer
Altera European Technology Centre
Holmers Farm Way
High Wycombe
Bucks HP12 4XF
United Kingdon
 http://www.altera.com

 


Back to the top