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 42519] New: - Incomplete Junit reporter
Date Fri, 25 May 2007 16:10:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42519>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42519

           Summary: Incomplete Junit reporter
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: AntUnit
        AssignedTo: dev@ant.apache.org
        ReportedBy: iostream@tut.by


If we have following test:

class AAA{
public static Test suite() {
   TestSuite suite = new TestSuite();
   suite.setName("AllTests"); 
   TestSuite test1 = new TestSuite();
   test1.setName("Test1");
   test1.addTest(new ATestCase("testA"));
   test1.addTest(new ATestCase("testB"));
   TestSuite test2 = new TestSuite();
   test2.setName("Test2");
   test2.addTest(new BTestCase("testC"));
   test2.addTest(new BTestCase("testD"));
   suite.addTest(test1);
   suite.addTest(test2);

   return suite;
}
......

After run tests -
<junit>
  <test name="AAA" outfile="AAA" todir="AAA"/>
  <formatter type="xml"/>
</junit>

we have following XML:

<testsuite errors="0" failures="0" name="AAA" tests="4" time="1.701">
....
   <testcase classname="ATestCase" name="testA" time="0.047"/>
   <testcase classname="ATestCase" name="testB" time="0.047"/>
   <testcase classname="BTestCase" name="testC" time="0.047"/>
   <testcase classname="BTestCase" name="testD" time="0.047"/>
....
<testsuite/>

but is better to get like following:
<testsuite errors="0" failures="0" name="AllTests" tests="4" time="1.701">
....
   <testsuite errors="0" failures="0" name="Test1">
      <testcase classname="ATestCase" name="testA" time="0.047"/>
      <testcase classname="ATestCase" name="testB" time="0.047"/>
   <testsuite/>
   <testsuite errors="0" failures="0" name="Test2">
      <testcase classname="BTestCase" name="testC" time="0.047"/>
      <testcase classname="BTestCase" name="testD" time="0.047"/>
   <testsuite/>
....
<testsuite/>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message