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

codecov Bot commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.63014% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 98.05%. Comparing base (ab8a36c) to head (3d93bfa).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/Test/Target/MapBuilder.php 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1210   +/-   ##
=========================================
  Coverage     98.04%   98.05%           
- Complexity     1622     1654   +32     
=========================================
  Files           114      117    +3     
  Lines          5429     5500   +71     
=========================================
+ Hits           5323     5393   +70     
- Misses          106      107    +1     

☔ View full report in Codecov by Harness.
📢 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

github-actions Bot commented May 28, 2026

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