Closed vjik closed 9 months ago
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ❌ |
Fixed issues | #151 |
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
a236b11
) 99.57% compared to head (b7e06d6
) 99.58%. Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Introduced New Plugin Option "Package-Types" This addition to the changelog file provides options for defining different types of packages during processing. By default, the types are 'library' and 'composer-plugin'. It also offers a sample configuration for adding custom package types.
Updated README Document The documentation now includes information about the new 'Package-Types' option.
Updated 'PackagesListBuilder' and 'ProcessHelper' Files Improvements to the PackagesListBuilder file include the addition of a package types property to the constructor. Additionally, it now checks if a package type is included in the provided package types array. Changes in the ProcessHelper file allow it to pass the packageTypes method from the Options class to a new PackagesListBuilder instance.
Changes to the 'Options' file A new private property named 'packageTypes' is introduced with a default value of 'library' and 'composer-plugin'. It also verifies if the package types option is available and assigns its value to packageTypes.
Addition of Tests for New Features New test methods are introduced to evaluate the behavior of processing custom package types and processing libraries only. These tests are found in the PackageFilesProcessTest file.
Update on 'PackagesListBuilderTest' File The existing test method has been updated to include the default package types from the Options class constructor.
Modifications to 'TestCase.php' It now includes an optional argument 'packageTypes' in the createComposerMock() method, which defaults to null. Further, it has defined new custom package and type within the composer.json and params.php files in the custom-type directory.
Addition of New Files for Testing Custom Package Types Two new files, composer.json, and params.php, have been included for testing the custom package types. These files are located in the custom-type directory.