Skip to content

Conversation

@MrDys
Copy link

@MrDys MrDys commented Nov 5, 2025

What:

  • Bug Fix
  • New Feature

Description:

This PR handles two related things:

  1. The -c and --configuration flags that the rest of Pest uses to pass a phpunit.xml file do not work. Only --configuration= works. This PR makes it such that both -c and --configuration work, with and without the =.
  2. The configuration parsing does not support including individual files nor exclusions of files or directories. This PR enables all of those things. You can have a config that scans an entire directory except for these three files, you can have a config that only scans these two files, etc.

…dds support for specific file inclusion. Adds support for file and directory exclusion. Unit tests.
Comment on lines -134 to -138
$files = Finder::create()
->in($source)
->name('*.php')
->notName('*.blade.php')
->files();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is moved into ConfigurationSourceDetector::detect() because it now needs to create and return a list of files to be checked (so that exclusions can be properly handled).

@MrDys
Copy link
Author

MrDys commented Nov 10, 2025

@nunomaduro What do you think?

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.

1 participant