Behat (computer science)
Developer(s) | Konstantin Kudryashov |
---|---|
Initial release | 10 September 2010[1] |
Stable release | 3.0.14 / 23 September 2014 |
Development status | Active |
Written in | PHP |
Operating system | Cross-platform |
Type | Behavior-driven development |
License | MIT License |
Website |
behat |
Behat is a behavior-driven development framework for the PHP programming language. Behat was created by Konstantin Kudryashov and its development is hosted on GitHub.
Purpose
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. Test cases written with Behat define how a test scenario should work, written in plain language, following defined patterns.[2]
Benefits
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.[3]
References
- ↑ everzet's blog • BDD in PHP or "Just Be Hat". Everzet.com (2010-09-10). Retrieved on 2015-03-19.
- ↑ Behavior Driven Development with Behat & Co – more than just testing? | YMC. Ymc.ch. Retrieved on 2015-03-19.
- ↑ BDD With Behat - Tuts+ Code Tutorial. Code.tutsplus.com (2013-12-23). Retrieved on 2015-03-19.
External links
|