All Projects → Behat → Gherkin

Behat / Gherkin

Licence: mit
Gherkin parser, written in PHP 5.3+ for Behat project

Programming Languages

dsl
153 projects

Projects that are alternatives of or similar to Gherkin

Behat
BDD in PHP
Stars: ✭ 3,696 (+300%)
Mutual labels:  gherkin, behat
Suitesettingsextension
📎 Allows to overwrite suites' default settings.
Stars: ✭ 182 (-80.3%)
Mutual labels:  gherkin, behat
Servicecontainerextension
📻 Allows to declare own services inside Behat container without writing an extension.
Stars: ✭ 114 (-87.66%)
Mutual labels:  gherkin, behat
Variadicextension
🍺 Extension adding variadic arguments support to Behat steps definitions
Stars: ✭ 194 (-79%)
Mutual labels:  gherkin, behat
Bicing Api
Get statistics and locations of bicycle stations through REST API
Stars: ✭ 149 (-83.87%)
Mutual labels:  gherkin, behat
Symfonyextension
🎼 Extension integrating Behat with Symfony.
Stars: ✭ 376 (-59.31%)
Mutual labels:  gherkin, behat
flutter gherkin
A Gherkin parsers and runner for Dart and Flutter which is very similar to cucumber
Stars: ✭ 160 (-82.68%)
Mutual labels:  gherkin
Middleman Blog
Middleman : Blog Engine Extension
Stars: ✭ 317 (-65.69%)
Mutual labels:  gherkin
Monofony
Main repository for all Monofony bundles
Stars: ✭ 47 (-94.91%)
Mutual labels:  behat
TqExtension
Test your Drupal 7 (D8 in progress) sites easier with TqExtension for Behat.
Stars: ✭ 13 (-98.59%)
Mutual labels:  behat
Opencypher
Specification of the Cypher property graph query language
Stars: ✭ 534 (-42.21%)
Mutual labels:  gherkin
Symfony2extension
Symfony2 extension for Behat
Stars: ✭ 400 (-56.71%)
Mutual labels:  behat
Trema
Full-Stack OpenFlow Framework in Ruby
Stars: ✭ 267 (-71.1%)
Mutual labels:  gherkin
campaign
Comic Relief Campaign Distribution in Drupal 8
Stars: ✭ 22 (-97.62%)
Mutual labels:  behat
gherkin
Pure Rust implementation of Gherkin language (`.feature` file) for Cucumber testing framework.
Stars: ✭ 41 (-95.56%)
Mutual labels:  gherkin
Symfony Console Autocomplete
Shell autocompletion for Symfony Console based scripts
Stars: ✭ 465 (-49.68%)
Mutual labels:  behat
sonar-gherkin-plugin
SonarQube Cucumber Gherkin Analyzer
Stars: ✭ 33 (-96.43%)
Mutual labels:  gherkin
livre-developpement-pilote-comportement
Sources du livre sur Développement piloté par le comportement
Stars: ✭ 21 (-97.73%)
Mutual labels:  behat
Contexts
Behat extension with most custom helper steps
Stars: ✭ 387 (-58.12%)
Mutual labels:  gherkin
behave-restful
BDD Framework to Test REST Services and APIs
Stars: ✭ 47 (-94.91%)
Mutual labels:  gherkin

Behat Gherkin Parser

This is the php Gherkin parser for Behat. It comes bundled with more than 40 native languages (see i18n.php) support & clean architecture.

Useful Links

Usage Example

<?php

$keywords = new Behat\Gherkin\Keywords\ArrayKeywords(array(
    'en' => array(
        'feature'          => 'Feature',
        'background'       => 'Background',
        'scenario'         => 'Scenario',
        'scenario_outline' => 'Scenario Outline|Scenario Template',
        'examples'         => 'Examples|Scenarios',
        'given'            => 'Given',
        'when'             => 'When',
        'then'             => 'Then',
        'and'              => 'And',
        'but'              => 'But'
    ),
    'en-pirate' => array(
        'feature'          => 'Ahoy matey!',
        'background'       => 'Yo-ho-ho',
        'scenario'         => 'Heave to',
        'scenario_outline' => 'Shiver me timbers',
        'examples'         => 'Dead men tell no tales',
        'given'            => 'Gangway!',
        'when'             => 'Blimey!',
        'then'             => 'Let go and haul',
        'and'              => 'Aye',
        'but'              => 'Avast!'
    )
));
$lexer  = new Behat\Gherkin\Lexer($keywords);
$parser = new Behat\Gherkin\Parser($lexer);

$feature = $parser->parse(file_get_contents('some.feature'));

Installing Dependencies

$> curl http://getcomposer.org/installer | php
$> php composer.phar update

Contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].