ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24106] - Suites are not reported correctly in JUnitReport
Date Fri, 24 Oct 2003 15:56:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24106>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24106

Suites are not reported correctly in JUnitReport





------- Additional Comments From rusty@putzler.org  2003-10-24 15:56 -------
I have a TestCase that does something like this:

public void MyTest extends TestCase(){
	public static Test suite("MyTestSuite") {
		TestSuite suite = new TestSuite();
		suite.addTest(new MyTest("testPerformance"));
		suite.addTest(new MyTest("testPerformance2"));
		suite.addTest(new CustomDataPoolTest("testPerformance"));
		suite.addTest(new CustomDataPoolTest("privatePerformanceTest"));
		return suite;
	}
	public void testPerformance(){
		//do something
	}
	public void testPerformance2(){
		//do something
	}
  ....
}

The output of the Junit Report will record:

Mytest
	testPerformance
	testPerformance2
	testPerformance
	privatePerformance



There doesn't appear to be a way to determine that the second testPerformance 
or privatePerformance tests orginated from a different TestCase class. It seems 
like the report should list the suite name instead of the TestCase Name.  For 
instance:


MyTestSuite
	MyTest.testPerformance
	MyTest.testPerformance2
	CustomDataPoolTest.testPerformance
	CustomDataPoolTest.privatePerformance

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message