viernes, agosto 15, 2008

12 Tips para escribir Unit Test

Una nota muy piola para conocer rápidamente los principales principios a la hora de escribir test unitarios. Nota: 12 Unit Testing Tips for Software Engineers

Tips:
1. Unit Test to Manage Your Risk
2. Write a Test Case Per Major Component
3. Create Abstract Test Case and Test Utilities
4. Write Smart Tests
5. Set up Clean Environment for Each Test
6. Use Mock Objects To Test Effectively
7. Refactor Tests When You Refactor the Code
8. Write Tests Before Fixing a Bug
9. Use Unit Tests to Ensure Performance
10. Create Tests for Concurrent Code
11. Run Tests Continuously
12. Have Fun Testing!