Unreleased - 2026-xx-xx
5.4.2 - 2026-04-04
- Compatibility with
phpunit/php-code-coveragev14
- Renamed "PHP" reports to "Serialized" reports to align with new upstream terminology. The old config keys are still supported for backwards compatibility
- Changed default colours in the HTML report to match new defaults from upstream
5.4.1 - 2026-02-07
- Compatibility with
phpunit/php-code-coveragev13
5.4.0 - 2025-06-09
- Added
opencloverreport option
5.3.7 - 2025-02-07
- Compatibility with
phpunit/php-code-coveragev12
5.3.6 - 2024-11-16
- Don't show any warning messages about missing coverage driver when
--no-coverageCLI option is used
5.3.5 - 2024-09-22
- Use
stderrinstead ofstdoutfor warnings
5.3.4 - 2024-04-03
- Better handling of relative paths
5.3.3 - 2024-02-03
- Compatibility with
phpunit/php-code-coveragev11
- Minimum
phpunit/php-code-coverageversion bumped to 10.1
5.3.2.1 - 2024-09-15
- Better handling of PCOV and Xdebug running side by side
5.3.2 - 2023-12-09
- Support for Symfony 7
- Support for Symfony 4
5.3.1 - 2023-05-08
- Stopped using some deprecated methods inside
phpunit/php-code-coveragev10.1
- Better handling of PCOV and Xdebug running side by side
5.3.0 - 2023-02-04
- Compatibility with
phpunit/php-code-coveragev10 - Added
colorsandcustomCSSFileoptions to HTML report configuration
5.2.2 - 2021-11-30
- Support for Symfony 6
- Improved error messages when a coverage driver cannot be found
- Deprecated
processUncoveredFilessetting, it has been removed as of php-code-coverage v10.
5.2.1 - 2021-01-10
- When Xdebug was enabled, but its coverage feature was disabled an exception was thrown. This scenario is now treated the same as when no coverage driver is loaded at all (a warning is printed but Behat is allowed to run to completion)
5.2.0 - 2020-10-11
- Added support for the Cobertura report format
- Minimum
phpunit/php-code-coverageversion bumped to 9.2
5.1.1 - 2020-08-14
- Make the
--no-coverageoption work again
5.1.0 - 2020-08-10
- Support for
phpunit/php-code-coverage's static analysis cache introduced in v9.1. This can be configured via thecachekey in behat.yml, otherwise defaults tosys_get_temp_dir() . '/behat-code-coverage-cache'
- Minimum
phpunit/php-code-coverageversion bumped to 9.1
- Support for Symfony 3.4, in alignment with Behat/Behat#1296
5.0.1 - 2021-09-13
- Make the
--no-coverageoption work again
5.0.0 - 2020-08-07
- Compatibility with
phpunit/php-code-coveragev9. Branch and path coverage is automatically enabled when running under Xdebug. For more information on this feature, see https://doug.codes/php-code-coverage branchAndPathCoverageconfiguration key to enable/disable path and branch coverage. Setting this totrueexplicitly will warn when the feature cannot be used.- Support for PCOV
- The old
reportconfiguration key, usereportsinstead - Removed
forceCoversAnnotationandmapTestClassNameToCoveredClassNameconfiguration keys, these options are not supported byphp-code-coverageanymore - Removed the
whitelistconfiguration key to align withphp-code-coveragev9 terminology. All former subkeys ofwhitelistare now subkeys offilter - Renamed
addUncoveredFilesFromWhitelistandprocessUncoveredFilesFromWhitelisttoincludeUncoveredFilesandprocessUncoveredFilesto align withphp-code-coveragev9 terminology - Removed the custom driver selection logic and replaced it with built-in logic from
php-code-coverage - The
RemoteXDebugdriver, it was a companion to an old Symfony bundle, not a generally-usable feature - Removed legacy
LeanPHP\Behat\CodeCoveragealias
4.1.1 - 2020-02-15
- Compatibility with
phpunit/php-code-coveragev8
4.1.0 - 2019-11-04
- Added
reportsconfiguration key to enable generation of multiple coverage output formats, with schema validation of the available format-specific options
- The
reportconfiguration key as it only allowed for a single report type
4.0.1 - 2019-08-04
- Added back support for
LeanPHP\Behat\CodeCoverageinbehat.ymlfor seamless drop-in of the fork - Support for
phpdbg
- Issue with directories containing dashes in the name
- Issue with
xdebuganddeletecalls
4.0.0 - 2019-08-04
- Support for version 7.0 of
phpunit/php-code-coverage
- Changed namespace of all code to
LeanPHP\Behat\CodeCoveragefromDVDoug\Behat\CodeCoverage - Minimum version of PHP supported is
7.1
- Support for Symfony components older than
<3.4 - Support for HHVM