You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/05/25 18:10:43 UTC
DO NOT REPLY [Bug 42519] New: - Incomplete Junit reporter
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
DO NOT REPLY [Bug 42519] - Incomplete Junit reporter
Posted by bu...@apache.org.
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
------- Additional Comments From jdb@getsu.com 2007-06-27 20:49 -------
I agree, this would be nice. The current report doesn't really recognize
suites, despite the element name "testsuite". It is organized by package and
has only a single level of classes. I guess you want an option to organize the
report by suite, and an intermediate XML format to support that. This might be
appropriate for the legendary junit4 antlib.
--
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
DO NOT REPLY [Bug 42519] - Incomplete Junit reporter
Posted by bu...@apache.org.
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
bodewig@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|dev@ant.apache.org |notifications@ant.apache.org
Component|AntUnit |Optional Tasks
--
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