mstrelan/teamcity-html

Provides support for Drupal HTML output printer to phpunit's teamcity result printer.

1.1.0 2024-05-07 23:00 UTC

This package is auto-updated.

Last update: 2024-10-07 23:46:25 UTC


README

Provides support for Drupal HTML output printer to phpunit's teamcity result printer.

Overview

Running phpunit tests in PHPStorm requires the TeamCity listener. To enforce this it passes the --teamcity argument to phpunit which overrides any other printer class provided via phpunit.xml or via the --printer argument. Unfortunately this means Drupal's HTML output printer is not activated and the HTML output URLs are not displayed.

This package intercepts phpunit runs and modifies the arguments to allow for a custom printer. This approach was inspired by symfony/phpunit-bridge. The custom printer decorates the TeamCity result printer class with HTML output from Drupal's HtmlOutputPrinterTrait.

Installation

composer require --dev mstrelan/teamcity-html