14. Test behavior, not methods
One behavior, one test
Not one method many tests
One test one assert(*)
15. Test method name is
important
Test method is document
Give your intent:
testFindById is not a good name
should_find_agent_by_id is better
TestDox rule
If you modified some code, ensure you don’t break the test, if you break some tests, please fix it as quick as possible. You mustn’t leave the fail test to …