Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for glob patterns in ->in() method #198

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Add documentation for glob patterns in ->in() method #198

merged 1 commit into from
Jul 28, 2023

Conversation

mozex
Copy link
Contributor

@mozex mozex commented Jun 19, 2023

This commit adds documentation for the recently merged feature that allows the use of PHP glob patterns in the ->in() method. This feature was introduced in the following pull request:

The new documentation explains how to use glob patterns in Pest's configuration file to specify multiple directories or files with a single pattern and provides examples for better understanding:

  1. Applying a base test case class to all test files in a directory that match a specific pattern:
// tests/Pest.php
uses(Tests\TestCase::class)->in('Feature/*Job*.php');
  1. Using a glob pattern to match multiple directories in different modules while applying multiple test case classes and traits:
// tests/Pest.php
uses(
    DuskTestCase::class,
    DatabaseMigrations::class
)->in('../Modules/*/Tests/Browser');

@nunomaduro nunomaduro merged commit e44e185 into pestphp:master Jul 28, 2023
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