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
-
[2.0.0] - 2024-04-21
Added
Esi\CoverageCheck\Application
class which extendsSymfony\Component\Console\Application
.getDefaultInputDefinition()
andconfigureIO()
to clean up help output.Utils
class.isPossiblyClover()
, which attempts to ensure the provided file is a PHPUnit generated clover file.Style\CoverageCheckStyle
which extendsSymfony\Console\Style\SymfonyStyle
to format console output.--only-percentage
option for the Console. You can use-O
instead.--show-files
(shortcut-F
), to break down metrics by file, and output the results via a table.CoverageCheck::XPATH_FILES
and the following functions:CoverageCheck::processByFile()
CoverageCheckCommand::getFileTable()
CoverageCheckCommand::getResultOutput()
Changed
coverage:check
when calling the Phar or the bin file is no longer needed.CoverageCheck::loadMetrics
can now throw aRuntimeException
iffile_get_contents
fails for whatever reason or if the newisPossiblyClover
returns false.--show-files
option and related additions, theCoverageCheck::loadMetrics()
now has one parameter:$xpath
.XPATH_METRICS
now hasprotected
visibility.APPLICATION_NAME
andVERSION
moved fromCoverageCheck
toApplication
.Application
now also overrides the parentSymfony\Component\Console\Application
constructor and passes these values to the parent class.CoverageCheck::nonConsoleCall
and the Console to match more closely:Fixed
CoverageCheckCommand
updated to use theSymfony\Console\Attribute\AsCommand
attribute, as using the static properties is deprecated as ofSymfony\Console
6.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-files
option 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