- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 234字
- 2021-06-24 18:31:50
Behavior-driven development
Behavior-driven development (BDD) is an agile process designed to keep the focus on stakeholder value throughout the whole project. The premise of BDD is that the requirement has to be written in a way that everyone, be it the business representative, analyst, developer, tester, manager, and so on, understands it. The key is to have a unique set of artifacts that are understood and used by everyone—a collection of user stories. Stories are written by the whole team and used as both requirements and executable test cases. It is a way to perform TDD with a clarity that cannot be accomplished with unit testing. It is a way to describe and test functionality in (almost) natural language and make it runnable and repeatable.
A story is composed of scenarios. Each scenario represents a concise behavioral use case and is written in natural language using steps. Steps are a sequence of the preconditions, events, and outcomes of a scenario. Each step must start with the words Given, When, or Then. Given is for preconditions, When is for actions, and Then is for performing validations.
This was only a brief introduction. There is a whole chapter, Chapter 8, BDD – Working Together with the Whole Team, dedicated to this topic. Now it is time to introduce JBehave and Cucumber as two of the many available frameworks for writing and executing stories.
- 新編Visual Basic程序設(shè)計(jì)上機(jī)實(shí)驗(yàn)教程
- 微服務(wù)設(shè)計(jì)(第2版)
- Kali Linux Web Penetration Testing Cookbook
- Java性能權(quán)威指南(第2版)
- Monitoring Elasticsearch
- Java應(yīng)用開發(fā)技術(shù)實(shí)例教程
- C語言程序設(shè)計(jì)
- 量化金融R語言高級教程
- WebRTC技術(shù)詳解:從0到1構(gòu)建多人視頻會議系統(tǒng)
- Python忍者秘籍
- 微信小程序全棧開發(fā)技術(shù)與實(shí)戰(zhàn)(微課版)
- 智能手機(jī)APP UI設(shè)計(jì)與應(yīng)用任務(wù)教程
- Essential C++(中文版)
- Image Processing with ImageJ
- Solr權(quán)威指南(下卷)