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

Use ChoiceFormat to selectively render percentage and elapsed time in SurefireReportRenderer

    XMLWordPrintableJSON

Details

    Description

      The changes applied in SUREFIRE-2153 were in complete in terms of output formatting. It was done halfheartedly. This ticket aims to improve this:

      • Get rid of NumberFormat and use choice format with the resource bundles where the former will do all necessary magic for us
      • Selective scale the percentage to one decimal position if the value is neither 0 nor 100, both will display as integer value only
      • Scale the elapsed time of a test set to exactly four digits including fractional values which improves the harmony of readability (see attachment) and with a increasing decimal position (times 10) one decimal (fractional) position is displayed less, e.g., no one cares about microseconds if your test runs hundreds of seconds.

      Note: Though the attached file refers to log output, the formatting is consistent with the report and aims to unify both renderings.

      Attachments

        1. log-output.txt
          46 kB
          Michael Osipov

        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: