pestphp/pest v4.5.0 → v4.6.3

This release adds time-based sharding and then follows up with a couple of targeted fixes and PHPUnit bumps. The main user-facing change is that Pest can now balance shards by actual execution time, which should make CI jobs finish more evenly.

What's new

  • Pest can distribute tests by their actual execution time with --update-shards. It records class timings in tests/.pest/shards.json, and when that file is present, --shard automatically uses time-balanced distribution. The shard output also makes it clear when time-balanced sharding is active. (#1671)

Fixes

  • --update-snapshots now only updates snapshots that match when you pass --filter or a test file.
  • Boot time before the test suite starts is faster. The release notes describe this as up to 30% faster boot times, measured on Laravel Cloud.

Other notable changes

  • PHPUnit was bumped in v4.6.2 and again in v4.6.3 to stay compatible after an upstream advisory affected previous versions.

Contributors

  • @nunomaduro