fix(sharding): strip --runner from the --list-tests sub-process (#2004)

* fix(sharding): strip `--runner` from the `--list-tests` sub-process

* fix(sharding): strip a space-separated `--runner` value too

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test: count the two new shard tests in the visual suite totals

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Apa <mikko@apaiko.fi>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mikko
2026-11-13 16:06:20 +02:00
committed by GitHub
parent 4765bdb8d0
commit 8e3f467d8a
4 changed files with 70 additions and 7 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ test('parallel', function () use ($run): void {
$output = $run('--exclude-group=integration');
$output = implode("\n", array_slice(explode("\n", (string) $output), -10));
$expected = '2 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 29 skipped, 1622 passed (3577 assertions)';
$expected = '2 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 29 skipped, 1624 passed (3579 assertions)';
expect($output)
->toContain("Tests: {$expected}")