Test framework doesn't create XML reports, how to? [message #584941] |
Thu, 13 November 2008 08:56 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02395 seconds