When testing, make sure you keep in mind in mind
It will only run very well with the places you test.
Write a little
Take all the tests must be performed.
Have a minimum of running all test cases every day
Or one night
Write a perfect test for code that the most destroyed probability.
Write tests for you most likely to get the return.
If you are always debugging a place, write
Test automatic verification results instead of debugging.
If there is
Reported, write tests to expose this
Someone let you help debug, help him write test cases.
Write a unit test code before writing the code, only written the new code when the test fails. Write the simplest new code to make the test pass.