maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Sch?dl (JIRA)" <>
Subject [jira] Created: (MSUREFIRE-125) surefire xml report not wellformed on junit returning int
Date Thu, 01 Jun 2006 13:26:43 GMT
surefire xml report not wellformed on junit returning int

         Key: MSUREFIRE-125
     Project: Maven 2.x Surefire Plugin
        Type: Bug

    Versions: 2.1.2    
 Environment: Windows XP Pro, Java 1.5.0_06
    Reporter: Andreas Schödl
 Attachments:, TEST-de.sag.dms.junit.SurefireXmlTest.xml, de.sag.dms.junit.SurefireXmlTest.txt

Surefire XML reports are not well-formed, they contain unescaped "<" and ">" characters
when JUnit reports a failed assertEquals(1,2) with int.
Putting attached SurefireXmlTest into your tests directory brings XML-results like the attached.
<failure type="junit.framework.AssertionFailedError" message="expected:<1> but was:<2>">junit.framework.AssertionFailedError:
expected:&lt;1&gt; but was:&lt;2&gt;

As you see, the element content is properly escaped, but not the content of attribute "message".

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message