[php-src] PR #15171: Display two digits after decimal point for test result percentages

From: Date: Tue, 30 Jul 2024 18:42:59 +0000
Subject: [php-src] PR #15171: Display two digits after decimal point for test result percentages
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-27578@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/15171 Author: ravage84 At [CakeFest 2024](https://cakefest.org/) last week, Florian Engelbart presented "[Growing the PHP core - One Test at a Time](https://speakerdeck.com/realflowcontrol/growing-the-php-core-one-test-at-a-time-at-laraconeu-2021)", which is also available as [blog post](https://dev.to/realflowcontrol/growing-the-php-core-one-test-at-a-time-4g4k). During the [demo](https://www.youtube.com/live/GWDtf-YeCDw?si=8vqhHBxkKp3d52lW&t=21224), I noticed that the percentages of the test results were shown with one digit after the decima point, only. ![grafik](https://github.com/user-attachments/assets/e89aec2f-d1cd-4b65-9829-716aa3e25127) Since there are almost 20 thousand tests by now, any small test result number gets represented quite unprecise percentage. Especially small changes to these numbers, e.g. one failed test fixed, would likely not be noticable in the percentages. Thus, I thought adding one precision point more would be sensible and helpful. Before (example): ```` Number of tests : 19409 13853 Tests skipped : 5556 ( 28.6%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 0 ( 0.0%) ( 0.0%) Expected fail : 8 ( 0.0%) ( 0.1%) Tests passed : 13845 ( 71.3%) ( 99.9%) --------------------------------------------------------------------- Time taken : 246.705 seconds ===================================================================== ```` After (example): ```` Number of tests : 19409 13853 Tests skipped : 5556 ( 28.63%) --------- Tests warned : 0 ( 0.00%) ( 0.00%) Tests failed : 0 ( 0.00%) ( 0.00%) Expected fail : 8 ( 0.04%) ( 0.06%) Tests passed : 13845 ( 71.33%) ( 99.94%) --------------------------------------------------------------------- Time taken : 206.058 seconds ===================================================================== ````

« previous php.git-pulls (#27578) next »