[regression] restore HtmlOutputPrinter for PHPUnit 10

Created on 4 June 2024, 3 months ago

Problem/Motivation

HtmlOutputPrinter was removed because PHPUnit 10 removed the printer option (https://github.com/sebastianbergmann/phpunit/issues/4807).

However, nothing was put in its place, which means that browser tests no longer list the generated HTML files on the CLI output.

It looks like we can restore this functionality with PHPUnit 10's event system: https://github.com/sebastianbergmann/phpunit/issues/4676

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: works as designed

Version

11.0 🔥

Component

php.module

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @joachim
  • Status changed to Closed: works as designed 3 months ago
  • 🇦🇺Australia mstrelan

    See Changes required for PHPUnit 10 compatibility

    HTML output detailed list of generated links is opt-in

    To avoid overcrowding the output in CI environments, browser tests will no longer print by default the individual links in the test run report. The output in Drupal testing environment is saved as an artifact that can be browsed or downloaded from Gitlab. However, if you need to print the individual links locally you can set the BROWSERTEST_OUTPUT_VERBOSE environment variable to "true".

    See also HtmlOutputLogger and adjacent code.

    See also phpunit.xml.dist.

Production build 0.71.5 2024