Skip to content

slashrsm/behat-screenshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

Behat screenshot extension

Imporves screenshots functionality of Behat. Can automatically create screenshots after failed or all steps.

Quick start

  1. Install using Composer:

    curl -sS https://getcomposer.org/installer | php
    php composer.phar require slashrsm/behat-screenshot='~1.0'
  2. In the behat.yml add configuration for screenshot extension. Extenstion comes with three configuration variables, which are pretty self explanatory:

...
  extensions:
    slashrsm\screenshot\ScreenshotExtension:
      enabled_always: false
      enabled_on_fail: true
      screenshot_path: '/path/to/screenshots'
  1. In the behat.yml add ScreenshotContext to the contexts section:
...
  contexts:
    ...
    - slashrsm\screenshot\ScreenshotExtension\Context\ScreenshotContext

About

Screenshot extension for Behat.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages