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

Simplify serialization of elapsed time in StatelessXmlReporter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.1, 3.1.2
    • xml generation
    • None

    Description

      The current code uses a convoluted solution based on NumberFormat which refers to an outdated defintion on Ant's XML report file. These days, we can use String#valueOf() to serialize the string representation of a float value since:

      • Easier to understand and this is not human output (separation of concerns)
      • Ant's XMLJUnitResultFormatter does exactly the same with a double value.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: