https://github.com/ubirak/moco-behat-extension
Behat extension to use Moco in your features
https://github.com/ubirak/moco-behat-extension
behat-extension http mock stub third-party
Last synced: 10 months ago
JSON representation
Behat extension to use Moco in your features
- Host: GitHub
- URL: https://github.com/ubirak/moco-behat-extension
- Owner: ubirak
- License: mit
- Created: 2016-03-24T16:36:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-09-23T05:55:33.000Z (over 6 years ago)
- Last Synced: 2024-11-17T14:54:49.786Z (about 1 year ago)
- Topics: behat-extension, http, mock, stub, third-party
- Language: PHP
- Size: 20.5 KB
- Stars: 4
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Moco Extension for Behat 3
[](https://travis-ci.org/ubirak/moco-behat-extension)
[Moco](https://github.com/dreamhead/moco) is a stub server we used to use in test env.
Here is a small extension to make its usage more friendly.
## Warning
Vendor namespace changed from `Rezzza` to `Ubirak` in `2.0`
## Usage
```yml
default:
extensions:
Ubirak\MocoBehatExtension\MocoExtension:
json_file: features/fixtures.json
hostname: 127.0.0.1
port: 9997
suites:
default:
contexts:
- Ubirak\MocoBehatExtension\MocoContext
```
Then you just need to add `MocoWriter` as an argument of your context and tag your scenario with `@moco`
[See tests](features) for more details