From 709ecb1ba2641fc0c4653ebe1fd8a402bbf4d18b Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Sun, 19 Jan 2025 17:35:09 +0000 Subject: [PATCH] chore: adjusts tests --- .github/workflows/tests.yml | 2 +- tests/.snapshots/success.txt | 6 +++--- tests/Features/DescriptionLess.php | 4 ++-- tests/Visual/Parallel.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a66b4597..c4902b42 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,7 +28,7 @@ jobs: with: php-version: ${{ matrix.php }} tools: composer:v2 - coverage: xdebug + coverage: none - name: Setup Problem Matches run: | diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index f60db5a0..90b1b085 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -62,9 +62,9 @@ ↓ is marked as todo 3 ↓ shouldBeMarkedAsTodo - PASS Tests\Features\Coverage + WARN Tests\Features\Coverage ✓ it has plugin - ✓ it adds coverage if --coverage exist + - it adds coverage if --coverage exist → Coverage is not available ✓ it adds coverage if --min exist ✓ it generates coverage based on file input @@ -1708,4 +1708,4 @@ WARN Tests\Visual\Version - visual snapshot of help command output - Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 32 skipped, 1153 passed (2749 assertions) \ No newline at end of file + Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 33 skipped, 1152 passed (2744 assertions) \ No newline at end of file diff --git a/tests/Features/DescriptionLess.php b/tests/Features/DescriptionLess.php index 62b1fba6..0bc28720 100644 --- a/tests/Features/DescriptionLess.php +++ b/tests/Features/DescriptionLess.php @@ -31,7 +31,7 @@ get('foo')->get('bar')->expect(true)->toBeTrue(); get('foo')->expect(true)->toBeTrue(); describe('a "describe" group of tests', function () { -get('foo'); // not incomplete because closure is created... + get('foo'); // not incomplete because closure is created... get('foo')->get('bar')->expect(true)->toBeTrue(); get('foo')->expect(true)->toBeTrue(); - }); +}); diff --git a/tests/Visual/Parallel.php b/tests/Visual/Parallel.php index 9992f05e..036f51d7 100644 --- a/tests/Visual/Parallel.php +++ b/tests/Visual/Parallel.php @@ -16,7 +16,7 @@ $run = function () { test('parallel', function () use ($run) { expect($run('--exclude-group=integration')) - ->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 23 skipped, 1143 passed (2725 assertions)') + ->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 24 skipped, 1142 passed (2720 assertions)') ->toContain('Parallel: 3 processes'); })->skipOnWindows();