Add ability to specify paths for type coverage after -- separator #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add File and Directory Specification Support
Overview
This PR adds the ability to specify individual files and directories for type coverage analysis. Previously, the plugin could only analyse files defined in
phpunit.xmlsources. Now users can target specific files and directories using command-line arguments.New Features
File/Directory Arguments
Usage Examples
Benefits
Implementation Details
New Components
FileResolver.php- New utility class that:Enhanced
Plugin.php:--separatorFileResolverfor path resolutionTesting
Test Suite
FileResolver Unit Tests (
tests/Support/FileResolver.php):Plugin Integration Tests (added to
tests/Plugin.php):Test Fixtures (
tests/Fixtures/TestFiles/):SimpleClass.php: Fully typed class (100% coverage)MissingTypes.php: Class with missing types (50% coverage)SubDir/NestedClass.php: Nested class with missing types (25% coverage)readme.txt: Non-PHP file for filtering testsEmptyDir/: Contains no PHP files used for testing scenarios where no PHP files are foundBackward Compatibility
phpunit.xmlsourcesTODO: Documentation Updates
Update docs here