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/04/25 16:05:58 UTC
DO NOT REPLY [Bug 42241] New: - junitreport task omits test class name
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=42241>.
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=42241
Summary: junitreport task omits test class name
Product: Ant
Version: 1.7.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P3
Component: Optional Tasks
AssignedTo: dev@ant.apache.org
ReportedBy: gijs.peek@gmail.com
The reports generated by the junit report task fail to mention the test class
name. Different test classes may use the same test case names, so this
information may be useful (it would be for me)
The XMLJUnitResultFormatter class seperates the test name and class name in
the endTest method:
currentTest.setAttribute(ATTR_NAME,
n == null ? UNKNOWN : n);
currentTest.setAttribute(ATTR_CLASSNAME,
JUnitVersionHelper.getTestCaseClassName(test));
The testcase templates in junit-frames.xsl and junit-noframes.xsl only
incorperate the name attribute, not the classname attribute.
--
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 42241] - junitreport task omits test class name
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=42241>.
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=42241
jkf@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From jkf@apache.org 2007-04-29 06:37 -------
Sorry I don't quite get the issue here,
For every test class a different file is created (at least in the frames
version) This file also contains, just above the summary for the class the name
of the class.
Inside the xml file the classname is stored as name attribute of the testsuite.
For the noframes version, the classname is inserted before every table
describing the result for a single class (The classname is listed behind TestCase)
If you want another format, please create / adapt an xsl file to suit your needs.
--
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