Skip to content

Releases: sebastianbergmann/php-code-coverage

phpunit/php-code-coverage 14.3.0

Choose a tag to compare

@github-actions github-actions released this 07 Aug 07:24
Immutable release. Only release title and notes can be modified.
14.3.0
060a5c9

Added

  • #1140: Class-oriented HTML report
  • #1141: Improve visualization of branch coverage and path coverage in the HTML report
  • #1153: Filter HTML code coverage report by test size
  • #1210: Filesystem-based targeting
  • #1231: Identify dead code using static analysis
  • Record how often a test executed a line or traversed a branch or path (the <covered> elements of the XML report now have a count attribute; drivers that do not collect hit counts report 1)

Changed

  • #1259: Degrade gracefully when a source file cannot be parsed
  • The HTML report no longer depends on Bootstrap and jQuery; its markup, stylesheet, and JavaScript have been rewritten
  • The headline coverage figures of a directory, file, namespace, or class are now shown above its coverage table instead of in a Total row
  • The dashboard shows the bubble chart and the CRAP index table side by side, for classes as well as for methods
  • The CSS custom properties that carry the configured colors were renamed from --phpunit-* to --coverage-*; custom CSS files that use these, or that use Bootstrap's --bs-* custom properties, need to be updated
  • SebastianBergmann\CodeCoverage\Report\Html\Colors::default() now uses #eef1f5 and #22272e for the breadcrumb colors instead of var(--bs-gray-200) and var(--bs-gray-800)
  • The file listing of a directory no longer links directly to the branch and path coverage views of a file; these are reachable through the tabs on the file's own page
  • The serialization format for .cov files was bumped from version 1 to version 2; files serialized with previous versions cannot be loaded or merged any more

Fixed

  • #1258: Coverage of less than 100% can be displayed as 100.00% due to rounding

phpunit/php-code-coverage 14.2.4

Choose a tag to compare

@github-actions github-actions released this 30 Jul 17:02
Immutable release. Only release title and notes can be modified.
14.2.4
048a5c1
  • Source files were parsed repeatedly instead of read from the static analysis result cache, which made runs with path coverage enabled appear to hang

phpunit/php-code-coverage 14.2.3

Choose a tag to compare

@github-actions github-actions released this 06 Jul 15:05
Immutable release. Only release title and notes can be modified.
14.2.3
82f6e49

Fixed

  • #1240: Dark-mode HTML report: Warning and Danger backgrounds are indistinguishable for colorblind users
  • #1244: Do not build code unit map when test has no coverage targets

phpunit/php-code-coverage 14.2.2

Choose a tag to compare

@github-actions github-actions released this 08 Jun 11:51
Immutable release. Only release title and notes can be modified.
14.2.2
10d7da3

Fixed

  • #1230: Short-form property hook bodies wrongly classified as executable

phpunit/php-code-coverage 14.2.1

Choose a tag to compare

@github-actions github-actions released this 07 Jun 09:08
Immutable release. Only release title and notes can be modified.
14.2.1
ed4f43a

Added

  • RawCodeCoverageData::fromLineAndBranchCoverage()

phpunit/php-code-coverage 14.2.0

Choose a tag to compare

@github-actions github-actions released this 05 Jun 03:00
Immutable release. Only release title and notes can be modified.
14.2.0
ab8a36c

Added

  • SebastianBergmann\CodeCoverage\Driver\Granularity enumeration with Line, LineAndBranch, and LineBranchAndPath cases
  • SebastianBergmann\CodeCoverage\Driver\Selector::driver(Filter, Granularity) for selecting a driver by required granularity
  • SebastianBergmann\CodeCoverage\NoSupportedDriverAvailableException thrown when no driver supports the requested granularity

Changed

  • #1186: Merger::merge() now accepts any kind of iterable
  • Reduced overhead in static analysis
  • The HTML report now distinguishes three rendering modes (line, line + branch, line + branch + path) so that a driver providing branch coverage without path coverage no longer forces path-coverage UI to appear with empty data
  • The Text report now gates the Branches: and Paths: lines on the presence of the corresponding data independently
  • Various internal refactorings to improve code readability

Deprecated

  • SebastianBergmann\CodeCoverage\Driver\Selector::forLineCoverage(), use Selector::select() with Granularity::Line instead
  • SebastianBergmann\CodeCoverage\Driver\Selector::forLineAndPathCoverage(), use Selector::select() with Granularity::LineBranchAndPath instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::enableBranchAndPathCoverage(), use Selector::select() with Granularity::LineBranchAndPath instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::disableBranchAndPathCoverage(), use Selector::select() with Granularity::Line instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::collectsBranchAndPathCoverage()
  • SebastianBergmann\CodeCoverage\BranchAndPathCoverageNotSupportedException, replaced by BranchCoverageNotSupportedException and PathCoverageNotSupportedException

Fixed

  • #1159: Statements inside a closure passed as a call argument are incorrectly reported as not covered

phpunit/php-code-coverage 14.1.10

Choose a tag to compare

@github-actions github-actions released this 01 Jun 13:27
Immutable release. Only release title and notes can be modified.
14.1.10
3719c5b

Fixed

  • #1212: Filenames in HTML report are not escaped

phpunit/php-code-coverage 12.5.7

Choose a tag to compare

@github-actions github-actions released this 01 Jun 13:25
Immutable release. Only release title and notes can be modified.
12.5.7
186dab5

Fixed

  • #1212: Filenames in HTML report are not escaped

phpunit/php-code-coverage 14.1.9

Choose a tag to compare

@github-actions github-actions released this 16 May 05:16
Immutable release. Only release title and notes can be modified.
14.1.9
655533a

Fixed

  • #1160: Ternary inside array spread: else-arm's line is falsely reported as not covered

phpunit/php-code-coverage 14.1.8

Choose a tag to compare

@github-actions github-actions released this 09 May 12:08
Immutable release. Only release title and notes can be modified.
14.1.8
031856c

Fixed

  • #1159: Statements inside a closure passed as a call argument are incorrectly reported as not covered
  • case statements are treated as branch operators