bex/behat-screenshot-image-driver-dummy

dummy image driver for bex/behat-screenshot behat extension

Maintainers

👁 tkotosz

Package info

github.com/tkotosz/behat-screenshot-image-driver-dummy

pkg:composer/bex/behat-screenshot-image-driver-dummy

Statistics

Installs: 1 261

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.1 2015-11-23 13:13 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT c698b7860fe7fe47d9b271a677f3d52875b277aa

BDDBehatTDDbehat-screenshot

This package is auto-updated.

Last update: 2026-05-29 01:01:16 UTC


README

👁 Scrutinizer Code Quality
👁 Build Status
👁 Build Status

This package is an image driver for the bex/behat-screenshot behat extension which is just an example to show how an image driver should look like. So it only returns a dummy image url.

Installation

Install by adding to your composer.json:

composer require --dev bex/behat-screenshot-image-driver-dummy

Configuration

Enable the image driver in the Behat-ScreenshotExtension's config in behat.yml like this:

default:
 extensions:
 Bex\Behat\ScreenshotExtension:
 active_image_drivers: dummy

Usage

When you run behat and a step fails then the Behat-ScreenshotExtension will automatically take the screenshot and will pass it to the image driver, which will return the dummy image url. So you will see something like this:

 Scenario: # features/feature.feature:2
 Given I have a step # FeatureContext::passingStep()
 When I have a failing step # FeatureContext::failingStep()
 Error (Exception)
Screenshot has been taken. Open image at http://docs.behat.org/en/v2.5/_static/img/logo.png
 Then I should have a skipped step # FeatureContext::skippedStep()