All Projects → Behatch → Contexts

Behatch / Contexts

Licence: other
Behat extension with most custom helper steps

Labels

Projects that are alternatives of or similar to Contexts

cucumber-jvm-examples
Cucumber-jvm 5.0.0 examples with Maven
Stars: ✭ 20 (-94.83%)
Mutual labels:  gherkin
cucumber-react
React components for Cucumber
Stars: ✭ 15 (-96.12%)
Mutual labels:  gherkin
Trema
Full-Stack OpenFlow Framework in Ruby
Stars: ✭ 267 (-31.01%)
Mutual labels:  gherkin
vscode-cucumber
Code snippets to write scenarios faster + Syntax highlight for .feature files
Stars: ✭ 24 (-93.8%)
Mutual labels:  gherkin
gavel-spec
Behavior specification for Gavel, validator of HTTP transactions
Stars: ✭ 105 (-72.87%)
Mutual labels:  gherkin
gherkin
Pure Rust implementation of Gherkin language (`.feature` file) for Cucumber testing framework.
Stars: ✭ 41 (-89.41%)
Mutual labels:  gherkin
featurebook
A command line tool (and Node.js library) for generating beautiful system specifications from Gherkin source files.
Stars: ✭ 40 (-89.66%)
Mutual labels:  gherkin
Behat
BDD in PHP
Stars: ✭ 3,696 (+855.04%)
Mutual labels:  gherkin
CucumberSwift
A lightweight swift Cucumber implementation
Stars: ✭ 40 (-89.66%)
Mutual labels:  gherkin
behave-restful
BDD Framework to Test REST Services and APIs
Stars: ✭ 47 (-87.86%)
Mutual labels:  gherkin
Awesome-Cucumber
A collection of awesome Cucumber and Gherkin-related resources
Stars: ✭ 33 (-91.47%)
Mutual labels:  gherkin
karate-runner
VSCode Extension for Karate
Stars: ✭ 23 (-94.06%)
Mutual labels:  gherkin
flutter gherkin
A Gherkin parsers and runner for Dart and Flutter which is very similar to cucumber
Stars: ✭ 160 (-58.66%)
Mutual labels:  gherkin
scenari
Clojure BDD library - Executable Specification with Behavior-Driven Development
Stars: ✭ 57 (-85.27%)
Mutual labels:  gherkin
Jekyll Responsive Image
An unopinionated Jekyll plugin for generating and using responsive images
Stars: ✭ 289 (-25.32%)
Mutual labels:  gherkin
cucumber-performance
A performance testing framework for cucumber
Stars: ✭ 28 (-92.76%)
Mutual labels:  gherkin
sonar-gherkin-plugin
SonarQube Cucumber Gherkin Analyzer
Stars: ✭ 33 (-91.47%)
Mutual labels:  gherkin
Symfonyextension
🎼 Extension integrating Behat with Symfony.
Stars: ✭ 376 (-2.84%)
Mutual labels:  gherkin
Middleman Blog
Middleman : Blog Engine Extension
Stars: ✭ 317 (-18.09%)
Mutual labels:  gherkin
bat
Gherkin based DSL for testing HTTP APIs via Cucumber.JS
Stars: ✭ 30 (-92.25%)
Mutual labels:  gherkin

Behatch contexts

Build status Scrutinizer Code Quality Code Coverage SensioLabsInsight

Behatch contexts provide most common Behat tests.

Installation

This extension requires:

  • Behat 3+
  • Mink
  • Mink extension

Project dependency

  1. Install Composer
  2. Require the package with Composer:
$ composer require --dev behatch/contexts
  1. Activate extension by specifying its class in your behat.yml:
# behat.yml
default:
    # ...
    extensions:
        Behatch\Extension: ~

Project bootstraping

  1. Download the Behatch skeleton with composer:
$ php composer.phar create-project behatch/skeleton

Browser, json, table and rest step need a mink configuration, see Mink extension for more information.

Usage

In behat.yml, enable desired contexts:

default:
    suites:
        default:
            contexts:
                - behatch:context:browser
                - behatch:context:debug
                - behatch:context:system
                - behatch:context:json
                - behatch:context:table
                - behatch:context:rest
                - behatch:context:xml

Examples

This project is self-tested, you can explore the features directory to find some examples.

Configuration

  • browser - more browser related steps (like mink)
    • timeout - default timeout
  • debug - helper steps for debugging
    • screenshotDir - the directory where store screenshots
  • system - shell related steps
    • root - the root directory of the filesystem
  • json - JSON related steps
    • evaluationMode - javascript "foo.bar" or php "foo->bar"
  • table - play with HTML the tables
  • rest - send GET, POST, ... requests and test the HTTP headers
  • xml - XML related steps

Configuration Example

For example, if you want to change default directory to screenshots - you can do it this way:

default:
    suites:
        default:
            contexts:
                - behatch:context:debug:
                    screenshotDir: "var"

Translation

See more information on Transifex.com

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].