Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1061

wrong test output generation, prevents parsing of generated xml file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Not A Problem
    • 2.16
    • None
    • Maven Surefire Plugin
    • None

    Description

      please see attached sample project demonstrating the problem. This is a regression introduced in 2.16, likely by SUREFIRE-1020. originally reported at https://netbeans.org/bugzilla/show_bug.cgi?id=241649

      when the test contains the following code

      @Test
          public void testMain() {
            System.out.println("blabla ]]>");
              assertTrue(false);
          }
      

      I get following output with these surefire versions (if below not readable, it's included with the sample project):

      2.16 <system-out><![CDATA[blabla ]]]]><![CDATA[>
      ]]></system-out>
      
      2.15 <system-out>blabla ]]&gt;
      </system-out>
      
      2.14 <system-out>blabla ]]>
      </system-out>
      
      2.13 <system-out>blabla ]]&gt;
      </system-out>
      

      Attachments

        1. testcase.zip
          4 kB
          Milos Kleint

        Activity

          People

            krosenvold Kristian Rosenvold
            mkleint Milos Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: