Fill: TDD 首先步骤
填空题 中等
题目
In TDD, 首先 phase 是 called ___ (编写 failing 测试).
提示
颜色 associated 使用 failing 测试.
解释
正确答案是 Red. TDD cycle 是 Red-Green-Refactor. Red 是首先 phase 哪里你 编写测试 for desired behavior 之前 implementation exists, 所以测试失败 (red). 然后你 编写 code 到制作它 通过 (green), and 最后 refactor.
相关资源
相关课程
- 测试-Driven Development
TDD workflow.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。