Skip to content

Behat extension that generates an animated gif with the complete interaction of tagged scenarios

Notifications You must be signed in to change notification settings

fonsecas72/behat-giffy-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Giffy - behat-giffy-extension

Behat extension that generates an animated gif with the complete interaction of tagged scenarios

This extension adds a driver that will allow you to create a animated GIF based on saved screenshots for each interaction with the browser.

Enable it by adding it to your session group and by adding a @giffy tag to your feature/scenario.

You can also use as your default session (javascript maybe) but be aware that it will slow down your tests.

It works on top of selenium2

##How to use

Add it as composer dependency

composer require fonsecas72/behat-giffy-extension

Update you behat.yml

default:
    extensions:
        Fonsecas72\GiffyExtension:
            screenshot_path: build/gifs
            use_scenario_folder: true
        Behat\MinkExtension:
            base_url:             http://link.php
            files_path:           'features'
            browser_name:         firefox
            default_session:      selenium2
            javascript_session:   selenium2
            sessions:
                selenium2:
                    selenium2: ~
                giffy:
                    giffy: ~
giffy:
    extensions:
            Behat\MinkExtension:
                default_session:      giffy
                javascript_session:   giffy

Then you could do:

behat -p giffy

Or you can append the @giffy tag to your feature/scenario.

About

Behat extension that generates an animated gif with the complete interaction of tagged scenarios

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages