mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
16 lines
588 B
PHP
16 lines
588 B
PHP
<?php
|
|
|
|
use Pest\TestSuite;
|
|
|
|
it('can determine in the test case if it is running in parallel', function () {
|
|
expect(test()->isInParallel())->toBeTrue();
|
|
})->skip(!TestSuite::getInstance()->isInParallel);
|
|
|
|
it('can determine in the test case if it is not running in parallel', function () {
|
|
expect(test()->isInParallel())->toBeFalse();
|
|
})->skip(TestSuite::getInstance()->isInParallel);
|
|
|
|
it('can skip using the test case based on parallel status', function () {
|
|
expect(TestSuite::getInstance()->isInParallel)->toBeFalse();
|
|
})->skip(function () { return $this->isInParallel(); });
|