这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@jakzal
Copy link
Owner

@jakzal jakzal commented Aug 24, 2025

The latest pest version assumes it is installed in the project and expects the tests directory to be present. It is impossible to run it as an external tool anymore.

Example failure when trying to use pest installed with the composer-bin plugin:

 Pest\Exceptions\FatalException

  The test directory [/home/runner/work/toolbox/toolbox/build/tools/.composer/vendor-bin/pest/tests/] does not exist.

  at build/tools/.composer/vendor-bin/pest/vendor/pestphp/pest/src/Bootstrappers/BootFiles.php:45
     41▕         $rootPath = TestSuite::getInstance()->rootPath;
     42▕         $testsPath = $rootPath.DIRECTORY_SEPARATOR.testDirectory();
     43▕
     44▕         if (! is_dir($testsPath)) {
  ➜  45▕             throw new FatalException(sprintf('The test directory [%s] does not exist.', $testsPath));
     46▕         }
     47▕
     48▕         foreach (self::STRUCTURE as $filename) {
     49▕             $filename = sprintf('%s%s%s', $testsPath, DIRECTORY_SEPARATOR, $filename);

The latest pest version assumes it is installed in the project and expects the tests directory to be present. It is impossible to run it as an external tool anymore.

Example failure when trying to use pest installed with the composer-bin plugin:

 Pest\Exceptions\FatalException

  The test directory [/home/runner/work/toolbox/toolbox/build/tools/.composer/vendor-bin/pest/tests/] does not exist.

  at build/tools/.composer/vendor-bin/pest/vendor/pestphp/pest/src/Bootstrappers/BootFiles.php:45
     41▕         $rootPath = TestSuite::getInstance()->rootPath;
     42▕         $testsPath = $rootPath.DIRECTORY_SEPARATOR.testDirectory();
     43▕
     44▕         if (! is_dir($testsPath)) {
  ➜  45▕             throw new FatalException(sprintf('The test directory [%s] does not exist.', $testsPath));
     46▕         }
     47▕
     48▕         foreach (self::STRUCTURE as $filename) {
     49▕             $filename = sprintf('%s%s%s', $testsPath, DIRECTORY_SEPARATOR, $filename);
@jakzal jakzal merged commit 310f00f into master Aug 24, 2025
8 of 9 checks passed
@jakzal jakzal deleted the pest-removal branch August 24, 2025 21:48
jakzal added a commit to jakzal/phpqa that referenced this pull request Aug 24, 2025
## What's Changed

* Remove pest by @jakzal in jakzal/toolbox#537

**Full Changelog**: jakzal/toolbox@v1.98.0...v1.99.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants