Pest | Blog | Mozex                        [ Skip to content ](#main-content)   [                  ozex Labs ](https://mozex.dev) [About](https://mozex.dev#about) [Projects](https://mozex.dev#projects) [Open Source](https://mozex.dev#open-source) [Services](https://mozex.dev#services) [Docs](https://mozex.dev/docs) [Blog](https://mozex.dev/blog) [ Get in Touch ](https://mozex.dev#contact) 

        [About](https://mozex.dev#about) [Projects](https://mozex.dev#projects) [Open Source](https://mozex.dev#open-source) [Services](https://mozex.dev#services) [Docs](https://mozex.dev/docs) [Blog](https://mozex.dev/blog) [ Get in Touch ](https://mozex.dev#contact) 

     [   Back to Blog ](https://mozex.dev/blog) Tagged: Pest 
==============

     [ Fixing Pest Sharding for Modular Laravel Applications 
-------------------------------------------------------

 ](https://mozex.dev/blog/2-fixing-pest-sharding-for-modular-laravel-applications) When Pest v4 dropped, one feature got my attention right away: test sharding. My CI pipelines were painfully slow, and splitting tests across parallel GitHub Actions runners seemed like the obvious fix. I upgraded, configured the shards, pushed to CI, and waited. Every shard ran every test. Shard 1 of 4? Full suite. Shard 3 of 4? Full suite. My "optimization" made things four times worse.

   Mar 24, 2026   ·  12 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Testing ](https://mozex.dev/blog/tags/testing) [ Pest ](https://mozex.dev/blog/tags/pest) [ GitHub Actions ](https://mozex.dev/blog/tags/github-actions)  

###  Stay in the Loop 

 Get the latest posts delivered to your inbox - on your schedule.

   Every New Post Weekly Digest Monthly Digest  

  Subscribe   Subscribing...     No spam. Unsubscribe anytime.

   ![Mozex](https://mozex.dev/images/mozex/profile-256.webp)###  Mozex 

 Laravel Specialist

 Senior Laravel Specialist &amp; Consultant. Building developer tools and open-source packages.

 [   ](https://github.com/mozex) [   ](https://www.linkedin.com/in/mozex) [   ](https://x.com/mozexdev) [   ](https://mozex.dev/blog/feed) 

###  Browse by Topic 

  [ Laravel  15  ](https://mozex.dev/blog/tags/laravel) [ PHP  15  ](https://mozex.dev/blog/tags/php) [ Open Source  5  ](https://mozex.dev/blog/tags/open-source) [ AI  4  ](https://mozex.dev/blog/tags/ai) [ Architecture  3  ](https://mozex.dev/blog/tags/architecture) [ Tutorial  3  ](https://mozex.dev/blog/tags/tutorial) [ DevOps  3  ](https://mozex.dev/blog/tags/devops) [ Developer Tools  2  ](https://mozex.dev/blog/tags/developer-tools) [ Testing  2  ](https://mozex.dev/blog/tags/testing) [ Database  2  ](https://mozex.dev/blog/tags/database) [ Anthropic  2  ](https://mozex.dev/blog/tags/anthropic) [ Code Review  1  ](https://mozex.dev/blog/tags/code-review) [ Claude Code  1  ](https://mozex.dev/blog/tags/claude-code) [ Performance  1  ](https://mozex.dev/blog/tags/performance) [ MCP  1  ](https://mozex.dev/blog/tags/mcp) [ Markdown  1  ](https://mozex.dev/blog/tags/markdown) [ WooCommerce  1  ](https://mozex.dev/blog/tags/woocommerce) [ Productivity  1  ](https://mozex.dev/blog/tags/productivity) [ GitHub Actions  1  ](https://mozex.dev/blog/tags/github-actions) [ Pest  1  ](https://mozex.dev/blog/tags/pest) [ Bash  1  ](https://mozex.dev/blog/tags/bash)  

###  Need expert Laravel help? 

 I offer consulting, code reviews, and custom development for Laravel applications.

 [ View Services   ](https://mozex.dev#services) 

   Live across open source

  798,773+  

 package downloads and counting

  Mozex Labs  [   ](https://github.com/mozex) [   ](https://www.linkedin.com/in/mozex) [   ](https://x.com/mozexdev) [   ](mailto:hello@mozex.dev) [   ](https://mozex.dev/blog/feed) 

  © 2026 Mozex Labs
