ek9 / behat-phpspec-test

Test project for Behat and PhpSpec integration testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

behatspec-test

Simple test repository to test BehatSpec functionality.

  • behatspec branch is using dev-master version of BehatSpec.
  • behat-phpspec branch is using leanphp/behat-phpspec (temporary fork of BehatSpec).
  • v0.5 branch is using ^0.5 version of BehatSpec (not working)
  • behat2-code-generator is using leanphp/behat-code-generator:~2.5
  • behat3-code-generator is using leanphp/behat-code-generator:3.0.x-dev

It contains a basic configuration of Behat3 and PhpSpec3 with BehatSpec enabled and has an example features/product.feature defined to test if behat and phpspec integration works correctly.

Setup

Install dependencies via coposer:

$ composer install

Usage

Run tests via behat:

$ bin/behat

The above command should offer you to generate PhpSpec specification for Product class and then generate it by running phpspec.

About

Test project for Behat and PhpSpec integration testing


Languages

Language:PHP 72.6%Language:Gherkin 27.4%