《测试驱动开发》

测试驱动开发的目标是Clean Code that works。

具体实施步骤:
1、Quickly add a test.
2、Run all the tests and see the new one fail.
3、Make a little change.
4、Run all tests and see them all succeed.
5、Refactor to remove duplication.

-----------------------------------------
书里提到的我很认同的话。
Programming is full of classic sequence:
. input/process/output
. Send message/receive reply
. Read commmand/return result

你可能感兴趣的:(测试)