Long test runs slowing down your CI/CD pipeline?
#Paralleltesting runs tests simultaneously across multiple nodes, helping teams get faster feedback, accelerate releases, and maintain full test coverage.
Learn how to cut test execution time by up to 90%.
headspin.io/blog/parallel-te…
🚀 Optimize CI pipelines with parallel testing.
How-To: Run tests in parallel to reduce build times and speed up the CI process.
#CIPipelines#ParallelTesting#SmartSnippet
If you're using a real Redis instance in your Laravel test suite and your tests are running in parallel mode, you can use the ParallelTesting facade to set the Redis database to the threads token
This prevents tests running on separate threads from clobbering each other
ALT use Illuminate\Support\Facades\Redis;
use Illuminate\Support\Facades\ParallelTesting;
class AppServiceProvider extends ServiceProvider
{
public function register(): void
{
// ...
ParallelTesting::setUpTestCase(
fn (int $token) => Redis::select($token)
);
}
}
Improve your Testing Efficiency with Live #ParallelTesting 🚀
👉 Test on two mobile devices in the same screen, same test session
👉 Run two parallel sessions (on different browser tabs) for tests on desktop browsers
Learn more ➡️ bit.ly/3JaJF8g
ALT Supercharge productivity with Live Parallel tests
We also run our migrations for Parallel testing inside a
ParallelTesting::setUpTestCase...
You want this callback to run after you have configured the other database connections.
IIRC We switch back to the original database as a later internal callback switches us to testdb.
$token is not used here but somewhere down the line we're using ParallelTesting::token() instead. We also then manage the transactions ourselves from within the setUp() of the test case so that things still work when running in parallel vs serial.
Read this blog, 'Parallel Testing - A comprehensive guide' by Rohith Ramesh, VP, Pre-Sales & Solutions Engineering, @headspin_io, to explore the ins and outs of #paralleltesting and streamline your entire SDLC while minimizing risks and costs.
Read more: bit.ly/3iY3NjX
#ParallelTesting is a practice that can significantly accelerate the overall testing process and deliver results and feedback much quicker.
A must-read for any #devops 👇
zcu.io/UEgK