The essence of testing is "Trying every effort to find Software defects !", Testing is a continuous process throughout the entire development process. In a sense, the software development process is actually a testing process, the basic principle of the test is to compare whether the expected results are the same as the actual execution results. If the results are the same, the test is successful. Otherwise, the test fails.
Test Mode:
1. compile and maintain a set of detailed unit test cases;
2. Construct unit test and acceptance test cases before writingCode;
3. write code based on the constructed test cases.
Python uses several better test modules in the test.
1 unittest
2 pyunit
3 testsuite
4 nosetests
Two test books collected online:
1 xunit test mode http://book.douban.com/subject/3419784/
2 test-driven development http://book.douban.com/subject/1230036/