Skip to content

Support --no-coverage and --profile=coverage#42

Open
YoannChabert wants to merge 2 commits into
dvdoug:masterfrom
short-edition:pr-upstream-fixes
Open

Support --no-coverage and --profile=coverage#42
YoannChabert wants to merge 2 commits into
dvdoug:masterfrom
short-edition:pr-upstream-fixes

Conversation

@YoannChabert

@YoannChabert YoannChabert commented Jul 20, 2026

Copy link
Copy Markdown

Summary

  • Extension: coverage collection is now disabled by the legacy --no-coverage flag, or enabled by an explicit --profile=coverage, so both older Behat setups (using --no-coverage) and newer profile-based setups keep working.
  • ReportService: import Composer\Semver\VersionParser instead of the inline FQCN, and pass through the additional *Dark/*Bar/breadcrumbs* color config keys expected by the current phpunit/php-code-coverage HTML report (Colors::from()).
  • EventSubscriber: drop unused event parameters from afterScenario/afterExercise.

Test plan

  • Manual check: running with --no-coverage still skips coverage
  • Manual check: running with --profile=coverage (and no --no-coverage) collects coverage

…punit/php-code-coverage v14 HTML colors

- Extension: coverage is now disabled by the legacy --no-coverage flag or
  enabled by an explicit --profile=coverage, so both older and newer Behat
  setups keep working.
- Extension: keep parenthesized `new` expressions so the code still runs on
  PHP 8.3 (the parenthesis-less form needs 8.4+).
- ReportService: import Composer\Semver\VersionParser instead of using the
  FQCN inline, and pass through the new *Dark/*Bar color config keys expected
  by phpunit/php-code-coverage's HTML report.
- EventSubscriber: drop unused event parameters from afterScenario/afterExercise.
- docs: bump idna and urllib3 lockfile entries.
The idna/urllib3 bumps were fork-local dependabot updates, unrelated to
this PR's actual fixes.
@YoannChabert YoannChabert changed the title Support --no-coverage and --profile=coverage, PHP 8.3 fix, php-code-coverage v14 HTML colors Support --no-coverage and --profile=coverage Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant