Download the PHP package alom/journal-extension without Composer
On this page you can find all versions of the php package alom/journal-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alom/journal-extension
More information about alom/journal-extension
Files in alom/journal-extension
Package journal-extension
Short Description Behat extension adding screenshots to HTML reports
License MIT
Informations about the package journal-extension
Behat - Journal Extension
This extension provides a HTML format for Behat with screenshots.
Installation
Add it to your composer.json
:
{
"require": {
"alom/journal-extension": "dev-master"
}
}
Configure behat.yml
:
default:
extensions:
Behat\JournalExtension\Extension:
driver: mink # available: mink, webdriver
capture_all: true # defaults to false to only capture on failure
Launch your test suite with format journal:
$ bin/behat -f journal --out journal.html [feature, ...]
This command will produce a file journal.html
containing the HTML standard
output with additional screenshots.
Screenshot files will be placed in the same folder as the main output file. Any old screenshots are removed from the output folder first.
To get another progress on screen while journal report is being generated, use behat.yml:
formatter:
name: journal,pretty
parameters:
output_path: wwwdocs/features/index.html,null
To work, you have to use proper extension for it. Supported are:
- PHP WebDriver
- Mink (with SeleniumDriver or Selenium2Driver)