From baf764f286f43af6d1fe79cff943ae890813008f Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Wed, 4 Sep 2024 11:38:59 +0100 Subject: [PATCH] feat(mutate): requires it by default --- composer.json | 1 + src/Pest.php | 2 +- ...isual_snapshot_of_help_command_output.snap | 2 +- ...isual_snapshot_of_help_command_output.snap | 2 +- tests/.snapshots/success.txt | 50 ++----------------- 5 files changed, 9 insertions(+), 48 deletions(-) diff --git a/composer.json b/composer.json index 696b7bd7..06433b04 100644 --- a/composer.json +++ b/composer.json @@ -23,6 +23,7 @@ "nunomaduro/termwind": "^2.0.1", "pestphp/pest-plugin": "^3.0.0", "pestphp/pest-plugin-arch": "^3.0.0", + "pestphp/pest-plugin-mutate": "^3.0.0", "phpunit/phpunit": "^11.3.2" }, "conflict": { diff --git a/src/Pest.php b/src/Pest.php index f4548cbc..0533aa6d 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -6,7 +6,7 @@ namespace Pest; function version(): string { - return '3.0.0-rc.1'; + return '3.0.0-rc.2'; } function testDirectory(string $file = ''): string diff --git a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap index 7cb4b8c8..b22c27f4 100644 --- a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap @@ -1,5 +1,5 @@ - Pest Testing Framework 3.0.0-rc.1. + Pest Testing Framework 3.0.0-rc.2. USAGE: pest [options] diff --git a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap index ae28ad2d..f18e49a0 100644 --- a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap @@ -1,3 +1,3 @@ - Pest Testing Framework 3.0.0-rc.1. + Pest Testing Framework 3.0.0-rc.2. diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 12720479..34907b39 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -1315,7 +1315,7 @@ PASS Tests\Hooks\BeforeEachTest ✓ global beforeEach execution order - FAIL Tests\Overrides\VersionsTest + PASS Tests\Overrides\VersionsTest ✓ versions with dataset "Runner/Filter/NameFilterIterator.php" ✓ versions with dataset "Runner/ResultCache/DefaultResultCache.php" ✓ versions with dataset "Runner/TestSuiteLoader.php" @@ -1323,7 +1323,7 @@ ✓ versions with dataset "TextUI/Output/Default/ProgressPrinter/Subscriber/TestSkippedSubscriber.php" ✓ versions with dataset "TextUI/TestSuiteFilterProcessor.php" ✓ versions with dataset "Event/Value/ThrowableBuilder.php" - ⨯ versions with dataset "Logging/JUnit/JunitXmlLogger.php" + ✓ versions with dataset "Logging/JUnit/JunitXmlLogger.php" PASS Tests\PHPUnit\CustomAffixes\InvalidTestName ✓ it runs file names like @#$%^&()-_=+.php @@ -1549,8 +1549,8 @@ ✓ junit output - junit with parallel → Not working yet - FAIL Tests\Visual\Parallel - ⨯ parallel + PASS Tests\Visual\Parallel + ✓ parallel ✓ a parallel test can extend another test with same name PASS Tests\Visual\SingleTestOrDirectory @@ -1573,45 +1573,5 @@ WARN Tests\Visual\Version - visual snapshot of help command output - ──────────────────────────────────────────────────────────────────────────── - FAILED Tests\Overrides\VersionsTest > versions with dataset "Logging/JUn… - Failed asserting that two strings are identical. - -'676273f1fe483877cf2d95c5aedbf9ae5d6a8e2f4c12d6ce716df6591e6db023' - +'01974a686eba69b5fbb87a904d936eae2176e39567616898c5b758db71d87a22' - - at tests/Overrides/VersionsTest.php:8 - 4▕ - 5▕ use Pest\Bootstrappers\BootOverrides; - 6▕ - 7▕ test('versions', function (string $vendorPath, string $expectedHash) { - ➜ 8▕ expect(hash_file('sha256', $vendorPath))->toBe($expectedHash); - 9▕ })->with(function () { - 10▕ foreach (BootOverrides::FILES as $hash => $file) { - 11▕ $path = implode(DIRECTORY_SEPARATOR, [ - 12▕ dirname(__DIR__, 2), - - ──────────────────────────────────────────────────────────────────────────── - FAILED Tests\Visual\Parallel > parallel - Expected: \n - ........ss...s............sssssss.s.........................................\n - ............................................................................\n - ... (40 more lines) - - To contain: Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 17 todos, 19 skipped, 1079 passed (2597 assertions) - - at tests/Visual/Parallel.php:19 - 15▕ }; - 16▕ - 17▕ test('parallel', function () use ($run) { - 18▕ expect($run('--exclude-group=integration')) - ➜ 19▕ ->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 17 todos, 19 skipped, 1079 passed (2597 assertions)') - 20▕ ->toContain('Parallel: 3 processes'); - 21▕ })->skipOnWindows(); - 22▕ - 23▕ test('a parallel test can extend another test with same name', function () use ($run) { - - 1 tests/Visual/Parallel.php:19 - - - Tests: 2 deprecated, 2 failed, 4 warnings, 5 incomplete, 2 notices, 17 todos, 28 skipped, 1087 passed (2620 assertions) \ No newline at end of file + Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 17 todos, 28 skipped, 1089 passed (2621 assertions) \ No newline at end of file