Jay Fields' Thoughts: Developer Testing: Welcome to the Beta Test
Unit testing suggestions :-
- setup methods are evil
- test one thing at a time
- maintainability > no duplication
- test names are comments
- zero or one mock per test
- expect literals
- create test data builders
Integration testing suggestions :-
- a dozen or less tests
- run as part of the build
- use a powerful, high level language
- stub external dependencies
- happy path testing