pamil/phpspec-skip-example-extension
PhpSpec extension to skip examples via annotations. Add @require ClassOrInterface to a spec to skip all its examples when that dependency isn’t available—useful for optional integrations and version-dependent code. Compatible with PhpSpec 4 and 5.
@skip). It is highly specialized and only relevant if:
phpunit.xml configuration), this package is not Laravel-native and adds no direct value to Laravel’s ecosystem (e.g., no integration with Laravel’s testing helpers, service containers, or Artisan commands).@group + --group CLI) or PHPUnit’s @skip/@todo annotations may suffice without introducing PhpSpec dependencies.phpspec.yml) diverge from Laravel’s conventions.phpspec/phpspec).vendor/bin/ or composer scripts).describe()/it() instead of PHPUnit’s test()).phpunit.xml (to exclude PhpSpec tests or run them in parallel).RefreshDatabase traits or DatabaseTransactions).@skip) or Pest’s @skipIf achieve the same goal with zero framework switch?pamil/phpspec-skip-example-extension.@skip or Pest’s @skipIf suffice.tests/PhpSpec) with custom Composer scripts.vendor/bin/phpspec to test commands (e.g., GitHub Actions, GitLab CI).create(), assertDatabaseHas()).php artisan test won’t recognize PhpSpec tests).@group in PHPUnit).composer.json (dev dependencies).phpunit.xml to run PhpSpec tests in a separate process (e.g., via parallelization).pamil/phpspec-skip-example-extension) is abandoned (last release: 2020). Future PHP/PhpSpec updates may break compatibility.describe() vs. public function test()).phpspec.yml vs. phpunit.xml).phpspec run vs. phpunit).pest --parallel or PHPUnit’s --parallel.| Failure Scenario
How can I help you explore Laravel packages today?