2.0.0 #23
ericsizemore
announced in
Announcements
2.0.0
#23
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
[2.0.0] - 2024-04-21
Added
Esi\CoverageCheck\Applicationclass which extendsSymfony\Component\Console\Application.getDefaultInputDefinition()andconfigureIO()to clean up help output.Utilsclass.isPossiblyClover(), which attempts to ensure the provided file is a PHPUnit generated clover file.Style\CoverageCheckStylewhich extendsSymfony\Console\Style\SymfonyStyleto format console output.--only-percentageoption for the Console. You can use-Oinstead.--show-files(shortcut-F), to break down metrics by file, and output the results via a table.CoverageCheck::XPATH_FILESand the following functions:CoverageCheck::processByFile()CoverageCheckCommand::getFileTable()CoverageCheckCommand::getResultOutput()Changed
coverage:checkwhen calling the Phar or the bin file is no longer needed.CoverageCheck::loadMetricscan now throw aRuntimeExceptioniffile_get_contentsfails for whatever reason or if the newisPossiblyCloverreturns false.--show-filesoption and related additions, theCoverageCheck::loadMetrics()now has one parameter:$xpath.XPATH_METRICSnow hasprotectedvisibility.APPLICATION_NAMEandVERSIONmoved fromCoverageChecktoApplication.Applicationnow also overrides the parentSymfony\Component\Console\Applicationconstructor and passes these values to the parent class.CoverageCheck::nonConsoleCalland the Console to match more closely:Fixed
CoverageCheckCommandupdated to use theSymfony\Console\Attribute\AsCommandattribute, as using the static properties is deprecated as ofSymfony\Console6.1.Removed
phpstan\phpstan-symfony. Seemed to be a bit overkill to require a dependency for something I was able to solve with a couple extra lines, and was running into an issue where it seemed to suppress other issues from being reported.tests/console-application.php, since it was a requirement for phpstan-symfony.TODO
--show-filesoption is not yet supported inCoverageCheck::nonConsoleCall().GitHub PR's
New Contributors
Full Changelog: 1.0.0...2.0.0
This discussion was created from the release 2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions