Skip to content

v0.7.0

Choose a tag to compare

@koriym koriym released this 11 Jan 07:11

xcoverage: PHPUnit mode as default

Changed

  • PHPUnit mode is now the default
    • Uses --coverage-clover for stable PHPUnit version compatibility
    • Respects @codeCoverageIgnore annotations and phpunit.xml settings
    • No php-code-coverage dependency (parses clover XML directly)

Added

  • --raw option for original Xdebug direct coverage behavior
    • Use for non-PHPUnit projects or when annotation support is not needed
    • --branch-coverage and --include-vendor work in raw mode only

Usage

# Default: PHPUnit mode (respects @codeCoverageIgnore)
./bin/xcoverage

# Raw mode: Xdebug direct (any PHP script)
./bin/xcoverage --raw -- php script.php

Full Changelog: v0.6.1...v0.7.0