Part 2: Behavior Driven development.
第ii部分:行为驱动开发(BDD)。
In this part Jamie introduces the reader to behavior driven development and explains how it can improve the effectiveness of unit testing.
这个部分Jamie将给读者介绍行为驱动开发(BDD),同时他会解释BDD如何提高单元测试的有效性。
Behavior Driven Development goes further by directly associating unit tests (and test cases) with the requirements via the use of natural language.
行为驱动开发则更进一步,通过使用自然语言,直接把单元测试(以及测试用例)同需求联系起来。
When Dan first introduced behavior Driven Development, he changed the language commonly used in TDD, using the vocabulary of examples of behavior in place of tests.
当Dan率先介绍行为驱动开发时,他改变了在TDD中广泛使用的语言,转而使用行为性词汇来代替测试词汇。
It USES Behavior Driven Development (BDD) and Domain Specific language (DSL) techniques to allow test automation and also supports writing tests scripts using Groovy dynamic language.
它允许使用行为驱动开发(BDD)以及领域特定语言(DSL)技术实现自动化测试,同时它也支持使用Groovy动态语言来编写测试脚本。
To make things extra interesting (and easy) I've used easyb, a Groovy-based behavior-driven development framework that facilitates natural-language verification.
使事情更加有趣(和简单)的是,我使用了easyb,这是一个基于Groovy的行为驱动开发架构,利用自然语言验证。
What you may have noticed about this month's exploration in behavior-driven development, or BDD, is that Linda was, in essence, the customer.
您可能已经注意到,本月对行为驱动开发(BDD)的探索中,Linda实际上就是客户。
The basic concept of test-driven development is that before writing project code, you write a simple piece of code that tests your hypothetical project code for desired behavior.
测试驱动开发的基本概念是,在写项目代码之前,你写一段简单的代码来测试你假设的项目代码,以获得预期的反应。
This month, I invite you to join me as I make the evolutionary leap from TDD to its slightly more intuitive cousin: behavior-driven development (BDD).
本月,我邀请您和我一起实现从TDD到更具直观性的行为驱动测试(BDD)的演化。
This example USES the superb Specs library, which effectively provides a DSL for the behavior-driven development testing and engineering methodology.
这个例子使用了华丽的specs库,它提供了一套高效的dsl来用于行为驱动开发测试和工程方法学。
Consider this example of a style of test writing called Behavior-Driven Development [BDD] using the Specs library (see the section called "Specs").
你可以把下面的例子看作使用specs库(参见“Specs”章节)来编写行为驱动开发[bdd]程序的风格。
The basic concept of test-driven development is that before writing project code, you write a simple piece of code that tests your hypothetical project code for desired behavior.
测试驱动开发的基本概念是你在写代码之前,你先写一小块代码,用于测试你假想的项目代码是否实现了预期的行为。
The basic concept of test-driven development is that before writing project code, you write a simple piece of code that tests your hypothetical project code for desired behavior.
测试驱动开发的基本概念是你在写代码之前,你先写一小块代码,用于测试你假想的项目代码是否实现了预期的行为。
应用推荐