Behat (computer science)
The topic of this article may not meet Wikipedia's notability guidelines for products and services. (July 2014) (Learn how and when to remove this template message)
|Initial release||10 September 2010|
3.5.0 / 10 August 2018
Behat is intended to aid communication between developers, clients and other stakeholders during a software development process. It allows the clear documentation of testable examples of the software's intended behaviour. Behat test scenarios are written with Gherkin, a business-readable domain-specific language following defined patterns.
Tests can be run at any point new code is introduced into a codebase to confirm no regressions within the existing test coverage are introduced. It can be integrated with Selenium and other browser emulators to generate screenshots of failures. Like other BDD frameworks, Behat scenarios are a series of Given, When, and Then steps that explain a business case. The definition of these steps exist within method annotations of a class that extends the BehatContext.
The preconditions after "Given" correspond to the PHP method name to execute:
Feature: Function to test description Free text Scenario: Scenario 1 Given preconditions When actions Then results Scenario: Scenario 2 ...
|This computer-programming-related article is a stub. You can help Wikipedia by expanding it.|