- 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.
- Python量化投資指南:基礎、數據與實戰
- Power Up Your PowToon Studio Project
- 深入淺出Electron:原理、工程與實踐
- HoloLens Beginner's Guide
- Hadoop+Spark大數據分析實戰
- 假如C語言是我發明的:講給孩子聽的大師編程課
- Flash CS6中文版應用教程(第三版)
- Python編程:從入門到實踐
- 可解釋機器學習:模型、方法與實踐
- Mastering ROS for Robotics Programming
- App Inventor創意趣味編程進階
- 精通MySQL 8(視頻教學版)
- Python從入門到精通(第3版)
- Mudbox 2013 Cookbook
- Learning Image Processing with OpenCV