datasift / testrest-extension
Library to test end-to-end RESTful services using Behat
Installs: 3 446
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 36
Forks: 1
Open Issues: 0
Requires
- php: >=5.4
- behat/behat: ~3.0
- guzzlehttp/guzzle: ~6
- webmozart/assert: ^1.3
Requires (Dev)
- mheap/silex-memcache: 1.0.0
- silex/silex: ~1
- symfony/process: ~2.1
README
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.