maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Plummer (JIRA)" <>
Subject [jira] [Created] (SUREFIRE-1425) Surefire test.html does not keep output formatting
Date Wed, 27 Sep 2017 17:49:00 GMT
Chris Plummer created SUREFIRE-1425:

             Summary: Surefire test.html does not keep output formatting
                 Key: SUREFIRE-1425
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Plugin, TestNG support
    Affects Versions: 2.20.1
         Environment: Mac OS Sierra 10.12.6, JDK 8u131
            Reporter: Chris Plummer
            Priority: Minor

My TestNG setup runs tests against a local server, which produce a lot of output, which generally
includes a lot of JSON.  That output is not formatted well in the HTML file output by the
surefire plugin, because the HTML is not output with the <pre></pre> tag around
it to maintain the JSON formatting.  In addition, the <br/> tags at the end of each
line of output create a lot of uneeded space.  Can the plugin be updated to format the data
better and maintain the output formatting from the test?

The file I'm referring to is in target/surefire-reports/Surefire suite/Surefire test.hml when
I run 'mvn clean test'.  I'm using the latest surefire plugin to date, 2.20.1, using test-ng

Relevant pom.xml:





This message was sent by Atlassian JIRA

View raw message