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 2003/02/15 01:39:41 UTC

DO NOT REPLY [Bug 17040] - JUnit task report does not use the one defined by setName method

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=17040>.
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=17040

JUnit task report does not use the one defined by setName method





------- Additional Comments From lfi123@yahoo.com  2003-02-15 00:39 -------
This is due to the fact that xml reporter is adding the element at the 
startTest.  This was the 'easy' solution, rather then adding to the end test, 
which would create duplicate entries.  To resolve this one, I introduced a 
integer flag to determine if the element was created previously by and error, 
or failure.

The proposed resolution are as follows:
- Create a private integer var to detect if element was used
- Set the flag to != 0, when error or failure method is called.
- Move the element generation to the 'endTest'.  Wrapp it with if statement to 
check if the element was created by another method.

If nobody has any issues, I've made the appropriate code changes, and tested it 
out.  If nobody has an issue with the new design in next week, I would like to 
assign the defect to myself and submit the changes.

Thanks!

Leigh