Debug extension for Behat

Installs: 3 208 047

Dependents: 226

Suggesters: 0

Security: 0

Stars: 206

Watchers: 12

Forks: 12

Open Issues: 2


v2.1.0 2021-12-13 08:52 UTC

This package is auto-updated.

Last update: 2024-07-13 14:23:35 UTC


MinkDebugExtension is a Behat extension made for debugging and logging Mink related data after every failed step. It is especially useful while running tests on continuous integration server like Travis. While using appropriate driver, you can also save screenshots just after the failure.


Assuming you already have Composer:

composer require friends-of-behat/mink-debug-extension

Then you only need to configure your Behat profile:

            directory: directory-where-to-save-logs

Configuration reference

Under FriendsOfBehat\MinkDebugExtension there are three options to be configured:

  • directory (required to enable extension) - contains path to directory that will contain generated logs. Use the variable %paths.base% to refer to the directory where your behat.yml is
  • screenshot (default false) - whether to save screenshots if using supporting driver
  • clean_start (default true) - whether to clean your existing logs on each Behat execution


In order to test the extensions run:

composer install
bin/behat --strict


MinkDebugExtension was originally created by Kamil Kokot. See the list of contributors.