Skip to content

datasift/ms-lib-testrest

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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.

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.