Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpunit File Coverage Inspection Laravel Package

digitalrevolution/phpunit-file-coverage-inspection

Define per-file code coverage thresholds from Clover coverage.xml, with directory/file overrides and optional uncovered-method rules. Fails builds with checkstyle or GitLab formatted reports so a single file can’t hide behind high overall coverage.

View on GitHub
Deep Wiki
Context7
v3.0.0
v2.2.2
v2.0.0

Adds the ability to output to a file with a specific format, and to stdout in text format.

Breaking change to the command argument list:

  • dropped the 3rd required argument that specified the file to output
  • dropped --report parameter
  • added --reportGitlab=[<file>], --reportCheckstyle=[<file>], --reportText=[<file>]
v1.6.0
  • Improvement: when no renderer is specified, errors will be rendered to stdout.
  • Bugfix: all methods of a class were reported, instead of the actual uncovered methods.
v1.5.0

Added the ability to override the allow-uncovered-methods=false configuration option on per file basis.

v1.4.0

Added directories to custom coverage rules.

v1.3.0

Added method names to the error message when methods have no coverage.

v1.2.0

Improved relative path comparison between coverage.xml and the baseline

v1.1.2

Bumped requirements to PHP7.4+ and allow Symfony 6+

v1.1.1

Added exit code on failure option flag

v1.1.0

Allow or disallow methods to have no coverage

  • if configured coverage is below 100%, still enforce all methods to have some coverage
  • default behaviour now to disallow uncovered methods. Can be disable via configuration file.
v1.0.0

Initial release.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor