-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Lakion/readme
Created readme
- Loading branch information
Showing
1 changed file
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,56 @@ | ||
@TODO :) | ||
MinkDebugExtension | ||
================== | ||
|
||
[![License](https://img.shields.io/packagist/l/lakion/mink-debug-extension.svg)](https://packagist.org/packages/lakion/mink-debug-extension) | ||
[![Version](https://img.shields.io/packagist/v/lakion/mink-debug-extension.svg)](https://packagist.org/packages/lakion/mink-debug-extension) | ||
[![Total Downloads](https://img.shields.io/packagist/dt/lakion/mink-debug-extension.svg)](https://packagist.org/packages/lakion/mink-debug-extension) | ||
[![Build status...](https://img.shields.io/travis/Lakion/MinkDebugExtension/master.svg)](http://travis-ci.org/Lakion/MinkDebugExtension) | ||
[![Scrutinizer Quality Score](https://img.shields.io/scrutinizer/g/Lakion/MinkDebugExtension.svg)](https://scrutinizer-ci.com/g/Lakion/MinkDebugExtension/) | ||
|
||
**MinkDebugExtension** is a Behat extension made for debugging and logging Mink related data after every failed step. | ||
It is especially useful while running tests on continuous integration server like Travis. | ||
While using Selenium2 driver, you can also save screenshots just after the failure. | ||
|
||
Installation | ||
------------ | ||
|
||
Assuming you already have Composer: | ||
|
||
```bash | ||
composer require lakion/mink-debug-extension | ||
``` | ||
|
||
Then you only need to configure you Behat profile: | ||
|
||
```yml | ||
default: | ||
extensions: | ||
Lakion\Behat\MinkDebugExtension: | ||
directory: directory-where-to-save-logs | ||
``` | ||
Configuration reference | ||
----------------------- | ||
Under `Lakion\Behat\MinkDebugExtension` there are three options to be configured: | ||
|
||
- `directory` (required to enable extension) - contains path to directory that will contain generated logs, it can be relative to directory where your `behat.yml` is | ||
- `screenshot` (default `false`) - whether to save screenshots if using `Selenium2Driver` | ||
- `clean_start` (default `true`) - whether to clean your existing logs on each Behat execution | ||
|
||
Testing | ||
------- | ||
|
||
In order to test the extensions run: | ||
|
||
```bash | ||
composer install | ||
bin/phpspec run | ||
bin/behat --strict | ||
``` | ||
|
||
Authors | ||
------- | ||
|
||
MinkDebugExtension was originally created by [Kamil Kokot](http://kamil.kokot.me). | ||
See the list of [contributors](https://github.com/Lakion/MinkDebugExtension/contributors). |