2017 © Pedro Peláez
 

library behat-screenshot-image-driver-dummy

dummy image driver for bex/behat-screenshot behat extension

image

bex/behat-screenshot-image-driver-dummy

dummy image driver for bex/behat-screenshot behat extension

  • Monday, November 23, 2015
  • by tkotosz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 664 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Dummy image driver for Behat-ScreenshotExtension

Scrutinizer Code Quality Build Status Build Status, (*1)

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., (*2)

Installation

Install by adding to your composer.json:, (*3)

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:, (*4)

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:, (*5)

  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()

The Versions

23/11 2015

dev-master

9999999-dev https://github.com/tkotosz/behat-screenshot-image-driver-dummy

dummy image driver for bex/behat-screenshot behat extension

  Sources   Download

MIT

The Requires

 

The Development Requires

bdd tdd behat behat-screenshot

23/11 2015