The test cases are written first, and implementation proceeds by writing code to satisfy each test case.
将首先编写测试用例,然后将通过编写满足各个测试用例的代码来进行实现。
Once you've written the first test, you can often develop more tests very quickly from the same framework. This is where fixtures come in handy.
一旦编写了第一个测试,您就能够经常快速地从同一个框架下开发更多的测试。
When tests are written often (note, I'm not implying first), developers have the tendency to write uncomplicated code because complicated code is hard to test.
在编写测试时(注意,我没有暗示是第一次),开发人员通常倾向于编写不太复杂的代码,因为复杂的代码难以测试。
应用推荐