Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Executing PDE Test from the command line
icon4.gif  Executing PDE Test from the command line [message #1252439] Fri, 21 February 2014 08:05
Tim Majunke is currently offline Tim MajunkeFriend
Messages: 1
Registered: February 2014
Junior Member
I am currently trying to run my pde test for the egap plugin from the command line.

I tried to execute the egap test suite 'de.jaculon.egap.EgapTestsPDE' (located inside bundle 'de.jaculon.egap.tests') using the following batch file:
	java -Xms256M -Xmx256M -XX:MaxPermSize=128M ^
	-classpath C:\dev\eclipse_installations\eclipse_4.2.0\plugins\org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar ^
	org.eclipse.equinox.launcher.Main ^
	-os win32 -ws win32 -arch x86 ^
	-clean ^
	-consoleLog ^
	-version 3 ^
	-port 56786 ^
	-testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader ^
	-loaderpluginname org.eclipse.jdt.junit4.runtime ^
	-classNames de.jaculon.egap.EgapTestsPDE ^
	-application org.eclipse.pde.junit.runtime.nonuithreadtestapplication ^
	-product org.eclipse.platform.ide ^
	-data C:\dev\build\pde-test-workspace ^
	-testpluginname de.jaculon.egap.tests

I thought that eclipse would pick up the bundles in the /dropins folder so i copied the de.jaculon.egap.tests_1.0.0.jar and its dependencies to it. I also started a simple echo
server to communicate with the test (port 56786).

If i execute the batch file to run the test i get the following exception:

Exception in thread "Plug-in Tests Runner" java.lang.IllegalArgumentException: B
undle "de.jaculon.egap.tests" not found. Possible causes include missing depende
ncies, too restrictive version ranges, or a non-matching required execution envi
ronment.

The problem with this approach seems to be that eclipse does not pick up the bundles from the /dropins folder (where i put my test bundle). Please tell me how to instruct eclipse to load the test bundle.

My environment:

* Operating System: Windows 7
* Java Version: 7.51
* Eclipse Version: 4.2.0 (Juno)

Thanks for your help!
Previous Topic:Get javadoc or source
Next Topic:RCP generation with Eclipse SDK 4.2.2 problem
Goto Forum:
  


Current Time: Thu Apr 25 23:09:49 GMT 2024

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

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

Back to the top