TDD

1. write a test

2. run your test and see how it fails.

3. write code that will satify the test

4. run your test again and see your new test pass.

5. refactor your code

6. run your test again to confirm the test didn't break

7. repeat

posted @ 2018-10-25 16:03  yc5518  阅读(93)  评论(0编辑  收藏  举报