mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore: fixes snapshots
This commit is contained in:
@ -12,7 +12,7 @@ test('visual snapshot of test suite on success', function () {
|
||||
$process = (new Symfony\Component\Process\Process(
|
||||
['php', 'bin/pest'],
|
||||
dirname($testsPath),
|
||||
['EXCLUDE' => 'integration', 'REBUILD_SNAPSHOTS' => false, 'PARATEST' => 0, 'COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true'],
|
||||
['EXCLUDE' => 'integration', '--exclude-group' => 'integration', 'REBUILD_SNAPSHOTS' => false, 'PARATEST' => 0, 'COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true'],
|
||||
));
|
||||
|
||||
$process->run();
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
$run = function (string $target, bool $parallel) {
|
||||
$process = new Process(['php', 'bin/pest', $target, $parallel ? '--parallel' : '', '--colors=always'], dirname(__DIR__, 2),
|
||||
$process = new Process(['php', 'bin/pest', $target, $parallel ? '--parallel' : ''], dirname(__DIR__, 2),
|
||||
['COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true'],
|
||||
);
|
||||
|
||||
@ -18,16 +18,16 @@ $run = function (string $target, bool $parallel) {
|
||||
|
||||
test('todos', function () use ($run) {
|
||||
expect($run('--todos', false))->toMatchSnapshot();
|
||||
})->skipOnWindows();
|
||||
})->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
|
||||
|
||||
test('todos in parallel', function () use ($run) {
|
||||
expect($run('--todos', true))->toMatchSnapshot();
|
||||
})->skipOnWindows();
|
||||
})->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
|
||||
|
||||
test('todo', function () use ($run) {
|
||||
expect($run('--todo', false))->toMatchSnapshot();
|
||||
})->skipOnWindows();
|
||||
})->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
|
||||
|
||||
test('todo in parallel', function () use ($run) {
|
||||
expect($run('--todo', true))->toMatchSnapshot();
|
||||
})->skipOnWindows();
|
||||
})->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
|
||||
|
||||
Reference in New Issue
Block a user