[
https://issues.apache.org/jira/browse/SUREFIRE-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov updated SUREFIRE-2166:
-------------------------------------
Summary: Use ChoiceFormat to selectively render percentage and elapsed time
in SurefireReportRenderer (was: Use ChoiceFormat to selective render
percentage and elapsed time in SurefireReportRenderer)
> Use ChoiceFormat to selectively 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
> Priority: Major
> Fix For: 3.1.1
>
> Attachments: log-output.txt
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)