Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Test framework doesn't create XML reports, how to?
Test framework doesn't create XML reports, how to? [message #584941] Thu, 13 November 2008 08:56
Eclipse UserFriend
Hi all,
I've finally got the Eclipse test framework working. I wrote a little
sample JUnit test. Here it is:

import junit.framework.TestCase;
import junit.framework.Assert;

public class MyTest extends TestCase {

protected void setUp() throws Exception {
System.out.println("MyTest.setup");
}

protected void tearDown() throws Exception {
System.out.println("MyTest.tearDown");
}

public void testPassedTest() throws Exception {
System.out.println("MyTest.testPassedTest");
Assert.assertTrue("testPassedTest is passed", true);
}

public void testFailedTest() throws Exception {
Assert.fail("testFailedTest is failed");

}
}

Pretty simple, isn't it ;-)

I run a command line like:

java -jar plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800. jar
-application org.eclipse.test.coretestapplication -testpluginname
com.company.test -classname com.company.test.MyTest
formattter=org.apache.tools.ant.taskdefs.optional.junit.XMLJ UnitResultFormatter
,com.company.test.MyTest.xml

In the command prompt, I can see all the traces I put into the test case
source code but...nothing more. Here is what I see:

MyTest.setup
MyTest.testPassedTest
MyTest.tearDown
MyTest.setup
MyTest.tearDown

The test report is not created, I don't see any failure or success
information. Now I don't know what to do, any help would be greatly
appreciated.

Thanks in advance.
Previous Topic:Signing JAR plug-ins
Next Topic:Create a branding plugin, installable via Update Site
Goto Forum:
  


Current Time: Thu Jul 03 16:08:40 EDT 2025

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

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

Back to the top