Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/MPTEST-35 Here is an overview of the issue: --------------------------------------------------------------------- Key: MPTEST-35 Summary: Test plugin (actually the ant task) generates 1 testresult for multi class suite Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-test-plugin Assignee: Jason van Zyl Reporter: Martijn Dashorst Created: Tue, 22 Jun 2004 6:23 PM Updated: Tue, 22 Jun 2004 6:23 PM Description: >From the changelog of the ant junit-task (XMLJUnitResultFormatter, revision 1.30): --- begin quote --- A JUnit TestSuite can contain tests from multiple classes. In particular it can contain tests from two different classes but with the same method name. Add a new classname attribute to the <testcase> element in the XML report so that people know which test the report is talking about. --- end quote --- For instance: public class AllTests extends junit.framework.TestCase { public static junit.framework.Test suite() { junit.framework.TestSuite suite = new junit.framework.TestSuite(); suite.addTestSuite(FooTest.class); suite.addTestSuite(BarTest.class); return suite; } } public class FooTest extends junit.framework.TestCase { public void testFooBar() { fail(); } } public class BarTest extends junit.framework.TestCase { public void testFooBar() { fail(); } } When excuting the AllTests suite, all test results come in one file, without knowing which test had failed (both methods have the same name). The junit task of ant 1.6.1 has solved this problem by generating the classname in the xml element of the testreport. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
