Skip to content

Behat extension to use Moco in your features

License

Notifications You must be signed in to change notification settings

ubirak/moco-behat-extension

Repository files navigation

Moco Extension for Behat 3

Build Status

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

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 for more details