Files
core/tests/behat
2019-12-24 11:13:37 +01:00
..
2019-11-24 08:06:51 +01:00
2019-10-23 13:08:24 +02:00
2019-10-22 12:20:21 +02:00
2019-12-18 11:44:06 +01:00
2019-10-22 12:22:43 +02:00

Bolt Behat end-to-end tests

Bolt uses Behat for E2E testing.

Installation

Be sure that you have Java installed.

Run under core folder:

./run_behat_tests.sh

Usage

Run all tests with:

make behat-js

Running only failed tests is not yet implemented. However you can use tags to run only a few of them! Just add a tag before scenario, like:

Feature: Display record
    @example
    Scenario: As a user I want to display a single record

And then run:

vendor/bin/behat --tags=example

Writing tests

Put your tests inside ./tests/behat/ folder.

For describing test scenarios Behat uses Gherkin syntax.

For writing custom steps please refer to Behat docs.