bex/behat-screenshot-image-driver-unsee

unsee.cc image driver for bex/behat-screenshot behat extension

Maintainers

👁 tkotosz

Package info

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

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

Statistics

Installs: 24 317

Dependents: 0

Suggesters: 1

Stars: 2

Open Issues: 0

1.0.0 2015-11-14 09:05 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 89e5370bcfdf8af138e05cfe54c8f087cf781767

BDDBehatTDDbehat-screenshot

This package is auto-updated.

Last update: 2026-05-29 00:54:10 UTC


README

👁 Scrutinizer Code Quality
👁 Build Status
👁 Build Status

This package is an image driver for the bex/behat-screenshot behat extension which can upload the screenshot to Unsee and print the url of the uploaded image.

Installation

Install by adding to your composer.json:

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

Configuration

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

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

You can configure the expire time of the uploaded image (by default it is 10m) like this:

default:
 extensions:
 Bex\Behat\ScreenshotExtension:
 active_image_drivers: unsee
 image_drivers:
 unsee:
 expire: '10m' # possible values: '10m', '30m', '1h'

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 upload it and returns the URL of the uploaded image. 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 https://unsee.cc/idoftheimage
 Then I should have a skipped step # FeatureContext::skippedStep()