Skip to content

Filesystem-based targeting#1210

Draft
sebastianbergmann wants to merge 1 commit into
mainfrom
filesystem-targeting
Draft

Filesystem-based targeting#1210
sebastianbergmann wants to merge 1 commit into
mainfrom
filesystem-targeting

Conversation

@sebastianbergmann
Copy link
Copy Markdown
Owner

PHPUnit wants to introduce #[CoversFile], #[UsesFile], #[CoversDirectory], #[UsesDirectory], #[CoversDirectoryRecursively], and #[UsesDirectoryRecursively] attributes so that test classes can scope coverage to a file or directory instead of a class, trait, method, function, or namespace. This unblocks the use cases tracked in sebastianbergmann/phpunit#3794.

Before PHPUnit can implement those attributes, this library needs new Target types and the matching entries in the TargetMap produced by MapBuilder.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.02%. Comparing base (060c3de) to head (72c20d1).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1210      +/-   ##
============================================
+ Coverage     82.80%   83.02%   +0.21%     
- Complexity     1570     1601      +31     
============================================
  Files           113      116       +3     
  Lines          5315     5383      +68     
============================================
+ Hits           4401     4469      +68     
  Misses          914      914              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown

API Surface Changes

If any of the additions below are not intended as public API, mark them with @internal in the docblock.

New API Surface

Classes

Methods

@sebastianbergmann sebastianbergmann changed the title Initial worl on filesystem-based targeting Filesystem-based targeting May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant