Behat / Gherkin
Licence: mit
Gherkin parser, written in PHP 5.3+ for Behat project
Stars: ✭ 924
Programming Languages
dsl
153 projects
Projects that are alternatives of or similar to Gherkin
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
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
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
livre-developpement-pilote-comportement
Sources du livre sur Développement piloté par le comportement
Stars: ✭ 21 (-97.73%)
Mutual labels: behat
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
- Official Google Group is at http://groups.google.com/group/behat
- IRC channel on #freenode is
#behat
- Note on Patches/Pull Requests
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
- Konstantin Kudryashov everzet [lead developer]
- Other awesome developers
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].