Library to test end-to-end RESTful services using Behat
PHP Gherkin Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
features
src
testapp
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE.md
README.md
composer.json
composer.lock

README.md

behat-extension

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.

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

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.