datasift/behat-extension

Library to test end-to-end RESTful services using Behat

v5.1.1 2018-02-21 10:46 UTC

README

Latest Version on Packagist Software License Build Status Total Downloads

Description

This behat extension provides utility classes to test end-to-end RESTful services using behat.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require datasift/behat-extension.

If you need support for Guzzle 4-5, use testrest-extension 4.x.

"require-dev": {
	"datasift/testrest-extension": "4.*"
}

If you need support for Guzzle 6, use testrest-extension 5.x.

"require-dev": {
	"datasift/testrest-extension": "5.*"
}

Next, update Composer from the Terminal:

composer update

Activate extension by specifying its class in your behat.yml:

# behat.yml
default:
  extensions:
      DataSift\BehatExtension:
          base_url: http://localhost:8080/

  suites:
      default:
          contexts:
            - 'DataSift\BehatExtension\Context\RestContext'

Database

Supported Drivers

  • mysql
  • sqlite

Cache

Supported drivers

  • memcached

Mountebank

File

Testing

To test the library itself, run the tests:

composer test

Contributing

Please see CONTRIBUTING for details.

Credits And Developer Contacts

License

The MIT License (MIT). Please see License File for more information.