Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » JUnit Plugin Tests are not recognised by PDE test run
JUnit Plugin Tests are not recognised by PDE test run [message #576196] Wed, 13 August 2008 15:09
Roland Brand is currently offline Roland BrandFriend
Messages: 42
Registered: July 2009

I'm trying to automate my Plugin Tests with Ant. I'm using JUnit4, which
works fine when I start the Test via the Eclipse IDE.

When starting from command-line ant I get the message

[java] PDE Test Run Started - running 1 tests ...
[java] Test Tree Entry - Description: 1,xxxx,true,1
[java] Test Tree Entry - Description:
[java] Test Started - 1 - warning(junit.framework.TestSuite$1)
[java] Test Failed - 1 - warning(junit.framework.TestSuite$1) -
status: FAILED, trace: junit.framework.AssertionFailedError: No tests
found in xxxx
[java] at
[java] at junit.framework.TestSuite$1.runTest(
[java] at junit.framework.TestCase.runBare(
[java] at
[java] at
[java] at
[java] at
[java] at junit.framework.TestSuite.runTest(
[java] at
[java] at
[java] at
[java] at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(
[java] at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(
[java] at
[java] at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(
[java] at
org.eclipse.pde.internal.junit.runtime.UITestApplication$1.r un(
[java] at 5)

What also concerns me is the fact, that the PDE test run is obviously
using JUnit 3 instead of 4.

The ant script to start the test looks like this:

<java dir="${testeclipse.dir}"
<arg line="-application org.eclipse.pde.junit.runtime.uitestapplication
-consoleLog -data ${reports.dir} -clean -port ${pde.test.port}
-testpluginname xxxx -debug -classnames ${test.classes.list}"/>

What am I doing wrong?

Previous Topic:NoClassDefFoundError when accessing libraries in the JRE's ext folder
Next Topic:Classes in a jar within a plugin are not visible to other plugins
Goto Forum:

Current Time: Tue Jun 19 16:33:42 GMT 2018

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

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

Back to the top