Download the PHP package dpi/enhanced-drupal-phpunit-results without Composer

On this page you can find all versions of the php package dpi/enhanced-drupal-phpunit-results. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package enhanced-drupal-phpunit-results

Enhanced Drupal PHPUnit Results

Codecov GitHub branch checks state License

Provides tooling to improve the output of PHPUnit tests with Drupal.

After

Before

Highlights

The project is intended for use with functional tests, specifically projects utilizing Drupal Test Traits. Its recommended to utilize phpunit --printer or create a new phpunit.xml to separate Kernel and Unit tests.

Tests will need to use the included trait. Out of the box this enhancement cannot be used with tests out of your control, unless base test classes are patched, such as \Drupal\Tests\BrowserTestBase.

Drupal is a registered trademark of Dries Buytaert.

Installation and setup

In PHPUnit configuration files such as phpunit.xml, phpunit.xml.dist, etc, modify printerClass to reference the class from this library:

In base test files, replace use \Drupal\Tests\UiHelperTrait with use \dpi\EnhancedDrupalPhpunitResults\CombinedEnhancedUiHelperTrait.

Or if there are collisions,

Configuration

Optional configuration is available.

Set these values as environment variables in the executor or phpunit.ini file.

IDE launch links

Will trigger control/command-clicks on file paths to open in an editor of choice.

Possible values:

export ENHANCED_RESULTS_IDE=phpstorm

Repeat context

Will repeat the executing test at the top of the stack. Normally the executed test is only printed once at the beginning. This option will print the test in context for each drupalGet at the top of the stack. This is useful for tests with many drupalGets.

export ENHANCED_RESULTS_USE_REPEAT_CONTEXT=TRUE

Disable trimming columns to terminal width

Disable trimming file and URL text strings to terminal width. Instead strings will display untruncated.

export ENHANCED_RESULTS_DISABLE_TRIM_COLUMNS=TRUE

Disable stacks

Disable long stacks if they are noisy

export ENHANCED_RESULTS_DISABLE_OUTPUT_STACK=TRUE

Use sequential IDS instead of artifact numbers

Display numbers next to each drupalGet, starting from 1, relative to the current test run. Instead of artifact numbers.

export ENHANCED_RESULTS_USE_SEQUENTIAL_IDS=TRUE

Change file prefix

Changes file prefix so clickable files work, useful when used with Docker mounts or symlinks.

export ENHANCED_RESULTS_FILE_PREFIX=/home/user/www

Other notes


All versions of enhanced-drupal-phpunit-results with dependencies

PHP Build Version
Package Version
Requires php Version ^8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dpi/enhanced-drupal-phpunit-results contains the following files

Loading the files please wait ....