A Second Look at Unit Testing by Roy Osherove

19,675 views

Published on

more info at ArtOfUnitTesting.com . Roy Osherove covers what he learned between the 1st and 2nd edition of his book The Art Of Unit Testing.

Published in: Technology

A Second Look at Unit Testing by Roy Osherove

  1. 1. • Unit Of Work • Setup Methods • Constrained vs. Unconstrained Isolation Frameworks • Principles of Good Isolation Frameworks• Faking Deep Legacy is OK • Six Influence Forces • Beautiful Builds
  2. 2. Bottleneck Ninja Test Review Lion Build Bear
  3. 3. Test Public API Production Code Unit Of Work Return Noticeable State 3rd Party callValue/Exception Change
  4. 4. Assert Test Public API Production Code Unit Of Work ReturnValue/Exception
  5. 5. Test Public Assert API Production CodeUnit Of WorkNoticeable State Change
  6. 6. Test Public APIProduction Code 3rd PartyUnit Of Work Unit Of Work 3rd Party call
  7. 7. Test Public APIProduction Code 3rd PartyUnit Of Work Unit Of Work 3rd Party call
  8. 8. Old code
  9. 9. Old code New Fake code
  10. 10. Extract Scrip
  11. 11. Build Chain Triggers Build Chaining Triggered by checkin Triggered by end of previo Manual Manual
  12. 12. Slow Builds Do X Do X + Y Do X + Y + Z Do X + y + Z + N
  13. 13. Cumulative, Fast Builds Do X Do Y Do Z Do N
  14. 14. How Fast?
  15. 15.  Extract Script Shipping Skeleton Fill in the blanks Cumulative Builds Build Waves Location AgnosticBeautifulBuilds.com

×