Skip to content

1.2.0

Latest

Choose a tag to compare

@janedbal janedbal released this 21 Oct 15:14
· 1 commit to master since this release
Immutable release. Only release title and notes can be modified.
0ed07cc

New features:

  • PHPUnit 13 support: .cov files from phpunit/php-code-coverage 14 are now supported (#85)
    • all commands (check, patch-coverage, merge, convert) accept them
    • file paths are restored from the stored basePath
  • merge accepts clover files together with cobertura or .cov files (#86)
    • previously, it failed with Inconsistent expected lines count ... 20 vs. none

Fixes:

  • patch-coverage omits the Coverage: line when the patch changes no executable line, so GitLab does not record a false 0 % (#84)
  • Cobertura input keeps lines of all classes in one file (#92)
    • previously, only the last <class> element was kept, so check missed untested methods in the other classes
  • .cov files with dead (unreachable) lines no longer fail with an internal error (#91)
  • \ No newline at end of file markers in patches no longer shift line numbers of added lines (#93)
    • previously, --patch and patch-coverage failed with Patch file ... has added line #N that does not match actual content
  • Nested classes (a class declared in a method, an anonymous class in an anonymous class) no longer cause a LogicException or wrong method names (#89)
  • Relative paths in the output and in the {relFile} editor placeholder remove the cwd only at the start of the path (#90)

Dependencies:

  • --patch needs sebastian/diff 5.1 or newer (#88)
    • affects only PHPUnit 9 users (sebastian/diff 4), other commands still work for them

Internal:

  • CI now tests against PHPUnit 10, 11, 12 and 13 (#87)