You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2023/05/24 19:24:00 UTC

[jira] [Created] (SUREFIRE-2166) Use ChoiceFormat to selective render percentage and elapsed time in SurefireReportRenderer

Michael Osipov created SUREFIRE-2166:
----------------------------------------

             Summary: Use ChoiceFormat to selective render percentage and elapsed time in SurefireReportRenderer
                 Key: SUREFIRE-2166
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2166
             Project: Maven Surefire
          Issue Type: Improvement
          Components: Maven Surefire Report Plugin
    Affects Versions: 3.1.0
            Reporter: Michael Osipov
            Assignee: Michael Osipov
             Fix For: 3.1.1


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)