pest icon indicating copy to clipboard operation
pest copied to clipboard

PHPUnit 14 deprecation notice

Open rcerljenko opened this issue 2 months ago • 2 comments

When running pest with --no-results this is reported in the console:

The "--do-not-cache-result" CLI option is deprecated and will be removed in PHPUnit 14. Use "--do-not-record-test-run-history" instead.

rcerljenko avatar Oct 02 '26 09:10 rcerljenko

I couldn't reproduce this on pest 5.3.3 / PHPUnit 13.4.3 / paratest 7.27.2: pest --no-results (and with --parallel) prints no deprecation. Pest itself only passes --record-test-run-history (src/Plugins/Cache.php). The warning appears only when --do-not-cache-result is passed explicitly (e.g. pest --do-not-cache-result --no-results), or with paratest < 7.24.1 (fixed in paratestphp/paratest#1128).

Could you share composer show | grep -E "pest|phpunit|paratest" and the exact command / composer script / IDE runner you use? If --do-not-cache-result is in it, replacing it with --do-not-record-test-run-history should silence the warning.

adilKhan72 avatar Oct 18 '26 21:10 adilKhan72

Hi, I've updated packages since then so I guess it's fixed now via paratest... good to know!

rcerljenko avatar Oct 19 '26 05:10 rcerljenko