Removes parallel classes.

This commit is contained in:
luke
2021-08-10 11:30:48 +01:00
parent a760470e48
commit ef503646ee
11 changed files with 56 additions and 691 deletions

View File

@ -8,7 +8,7 @@ global $globalHook;
// HACK: we have to determine our $globalHook->calls baseline. This is because
// two other tests are executed before this one due to filename ordering.
$args = $_SERVER['argv'] ?? [];
$single = isset($args[1]) && Str::endsWith(__FILE__, $args[1]) || TestSuite::getInstance()->isInParallel;
$single = (isset($args[1]) && Str::endsWith(__FILE__, $args[1])) || TestSuite::getInstance()->isInParallel;
$offset = $single ? 0 : 2;
uses()->beforeAll(function () use ($globalHook, $offset) {

View File

@ -1,5 +1,7 @@
<?php
use Pest\TestSuite;
test('visual snapshot of test suite on success', function () {
$testsPath = dirname(__DIR__);
$snapshot = implode(DIRECTORY_SEPARATOR, [
@ -35,4 +37,5 @@ test('visual snapshot of test suite on success', function () {
expect(implode("\n", $output))->toContain(file_get_contents($snapshot));
}
})->skip(!getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'))
->skip(TestSuite::getInstance()->isInParallel)
->skip(PHP_OS_FAMILY === 'Windows');