2017 © Pedro Peláez
 

library behat-extensions

Integrated Behat extensions for FeatureContext files

image

integrated/behat-extensions

Integrated Behat extensions for FeatureContext files

  • Monday, February 12, 2018
  • by integrated
  • Repository
  • 1 Watchers
  • 0 Stars
  • 580 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 13 % Grown

The README.md

IntegratedBehatExtensions

This bundle enhances FeatureContext classes with traits for Behat with Mink, (*1)

Requirements

  • See the require section in the composer.json

Documentation

Installation

This bundle can be installed following these steps:, (*2)

Install using composer

$ composer require integrated/integrated-behat-extensions:master

Configuration

The extensions require a autoload path to be defined in the configuration of Behat., (*3)

// behat.yml
default:
    ...
    autoload:
        "" : %paths.base%/features/bootstrap
        "Integrated\\Behat" : %paths.base%/vendor/integrated/behat-extensions/src
...

In order to be able to catch mails send from the Symfony application the spool of Swiftmailer must be written to a directory., (*4)

// app/config/config_test.yml
...
swiftmailer:
    disable_delivery: true
    spool:
        type: file
        path: %kernel.cache_dir%/spool

Using Extensions

All extensions that enhance your FeatureContext class are in the Extension folder of the project. The other classes are used in an supporting way of the extensions. Depending on the extension type abstract methods are be defined in the trait. There mostly are declared within the MinkContext., (*5)

Example

The traits are placed within the FeatureContext class., (*6)

// features/bootstrap/FeatureContext.php
...
use Integrated/Behat/Extension/Login/SymfonyLogin;
...
class FeatureContext extends MinkContext implements Context    
{
    use SymfonyLogin; 
...    

License

This bundle is under the MIT license. See the complete license in the bundle:, (*7)

LICENSE

Contributing

Pull requests are welcome. Please see our CONTRIBUTING guide., (*8)

About

This bundle is part of the Integrated project. You can read more about this project on the Integrated for Developers website., (*9)

The Versions

12/02 2018
31/01 2018
31/07 2017
29/06 2017
14/06 2017

dev-INTEGRATED-1167-add-a-dom-evaluation-ste

dev-INTEGRATED-1167-add-a-dom-evaluation-ste

Integrated Behat extensions for FeatureContext files

  Sources   Download

MIT

The Requires

 

The Development Requires

18/05 2017
30/03 2017

dev-INTEGRATED-1025-add-behat-phpunit-and-ph

dev-INTEGRATED-1025-add-behat-phpunit-and-ph

Integrated Behat extensions for FeatureContext files

  Sources   Download

MIT

The Requires

 

The Development Requires