mstrelan/teamcity-html

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

1.0.0 2022-06-20 04:51 UTC

This package is auto-updated.

Last update: 2024-04-09 04:27:42 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