(Test Driven Development (Chinese version) envisions programming as a process of rolling a crank to lift a bucket of water from a well. If the bucket is relatively small, it only needs a crank that can roll freely. If the bucket is large and full of water, you will be very tired before the bucket is fully lifted. You need an anti reverse device to ensure that you can rest for a moment every time you turn. The heavier the bucket is, the closer the anti reverse ratchets are. The test program in test driven development is the ratchet on the anti reverse device. Once one of our test programs works, you will realize that it can work now and forever. Compared with the failure of the test program, you are one step closer to making all the test programs work. Now our job is to make the next test program work, and then the next one, and we will continue to do so. The analysis shows that the more difficult the problems to be managed by programming, the smaller the coverage of each test should be.
Test driven development byexample.pdf
This resource is collected by Kaiyuan Pavilion IT Information Station.)