Fixes for tests

This commit is contained in:
David Bomba 2024-09-03 09:27:25 +10:00
parent fe2dbebdf5
commit 777c3d5d66

View File

@ -28,10 +28,10 @@ $tests = \Illuminate\Support\Str::of($process->getOutput())
)) ))
->filter(fn (string $test) => !empty($test)) // Make sure there are no empty lines ->filter(fn (string $test) => !empty($test)) // Make sure there are no empty lines
->unique() // We only need unique classes ->unique() // We only need unique classes
->split(10) // ->split(10)
->get(1); // ->get(1);
// ->split((int) getenv('CI_NODE_TOTAL')) // Split it into equally sized chunks ->split((int) getenv('CI_NODE_TOTAL')) // Split it into equally sized chunks
// ->get((int) getenv('CI_NODE_INDEX')); // Get the index we need for this instance ->get((int) getenv('CI_NODE_INDEX')); // Get the index we need for this instance
/** /**
* Run phpunit with a filter: * Run phpunit with a filter: