From 668809bc751964e1a7ac5a1357d4674f76a41a53 Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Tue, 4 Aug 2026 19:28:58 +0100 Subject: [PATCH] chore: adds missing test --- tests/.snapshots/success.txt | 3 ++- tests/.tests/MultipleGroups/OneTest.php | 5 +++++ tests/.tests/MultipleGroups/ThreeTest.php | 5 +++++ tests/.tests/MultipleGroups/TwoTest.php | 5 +++++ tests/Visual/Parallel.php | 8 ++++++++ 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 tests/.tests/MultipleGroups/OneTest.php create mode 100644 tests/.tests/MultipleGroups/ThreeTest.php create mode 100644 tests/.tests/MultipleGroups/TwoTest.php diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 2a7256db..0641293b 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -2160,6 +2160,7 @@ ✓ a parallel test can extend another test with same name ✓ parallel reports invalid datasets as failures ✓ parallel can have multiple exclude-groups + ✓ parallel can have multiple groups PASS Tests\Visual\ParallelNestedDatasets ✓ parallel loads nested datasets from nested directories @@ -2193,4 +2194,4 @@ ✓ pass with dataset with ('my-datas-set-value') ✓ within describe → pass with dataset with ('my-datas-set-value') - Tests: 1 deprecated, 4 warnings, 5 incomplete, 2 notices, 40 todos, 35 skipped, 1547 passed (3381 assertions) \ No newline at end of file + Tests: 1 deprecated, 4 warnings, 5 incomplete, 2 notices, 40 todos, 35 skipped, 1548 passed (3383 assertions) \ No newline at end of file diff --git a/tests/.tests/MultipleGroups/OneTest.php b/tests/.tests/MultipleGroups/OneTest.php new file mode 100644 index 00000000..744ccc84 --- /dev/null +++ b/tests/.tests/MultipleGroups/OneTest.php @@ -0,0 +1,5 @@ +toBeTrue(); +})->group('one'); diff --git a/tests/.tests/MultipleGroups/ThreeTest.php b/tests/.tests/MultipleGroups/ThreeTest.php new file mode 100644 index 00000000..a78ec4d8 --- /dev/null +++ b/tests/.tests/MultipleGroups/ThreeTest.php @@ -0,0 +1,5 @@ +toBeTrue(); +})->group('three'); diff --git a/tests/.tests/MultipleGroups/TwoTest.php b/tests/.tests/MultipleGroups/TwoTest.php new file mode 100644 index 00000000..369da6f7 --- /dev/null +++ b/tests/.tests/MultipleGroups/TwoTest.php @@ -0,0 +1,5 @@ +toBeTrue(); +})->group('two'); diff --git a/tests/Visual/Parallel.php b/tests/Visual/Parallel.php index f91fc7bb..d8a731fb 100644 --- a/tests/Visual/Parallel.php +++ b/tests/Visual/Parallel.php @@ -58,3 +58,11 @@ test('parallel can have multiple exclude-groups', function () use ($run): void { expect((int) $doubleMatch[1])->toBeLessThan((int) $singleMatch[1]) ->and($doubleExclude)->toContain('Parallel: 3 processes'); })->skipOnWindows(); + +test('parallel can have multiple groups', function () use ($run): void { + $output = $run('tests/.tests/MultipleGroups', '--group=one', '--group=two'); + + expect($output) + ->toContain('Tests: 2 passed (2 assertions)') + ->toContain('Parallel: 3 processes'); +})->skipOnWindows();