Unit tests often need to test nuanced behavior of the code under test, leading to similar and duplicated situations.
单元测试常常需要测试有细微差异的代码行为,因此涉及到相似和重复的情况。
Unit testing defines a written contract about the behavior of each unit.
单元测试定义一个有关每个单元的行为的书面合同。
Behavior Driven Development goes further by directly associating unit tests (and test cases) with the requirements via the use of natural language.
行为驱动开发则更进一步,通过使用自然语言,直接把单元测试(以及测试用例)同需求联系起来。
应用推荐