You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/05/28 09:49:00 UTC
[jira] [Commented] (SUREFIRE-2166) Use ChoiceFormat to selectively render percentage and elapsed time in SurefireReportRenderer
[ https://issues.apache.org/jira/browse/SUREFIRE-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17726905#comment-17726905 ]
ASF GitHub Bot commented on SUREFIRE-2166:
------------------------------------------
asfgit closed pull request #639: [SUREFIRE-2166] Use ChoiceFormat to selective render percentage and elapsed time in SurefireReportRenderer
URL: https://github.com/apache/maven-surefire/pull/639
> 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)