Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TDD for Testers

TDD for Testers

"Test-Driven Development is what the developers do, not us." "No-one needs to do TDD: we test everything with automated tests anyway." "TDD frightens me. I think the developers want to use it to replace me."

With all these things and more said, it's increasingly clear that there's Fear, Uncertainty, and Doubt in the testing community about the role of TDD in modern development practices.

Let's get rid of that fear, and replace it with knowledge.

In this session, you'll learn more about what TDD is, why it's such a useful tool, and when/how to use it as a tester.

You'll learn what TDD is and it's history,
You'll understand how useful a tool TDD is to testers,
You'll learn how best to work with developers who want to use TDD.

1b5863cbb2d0009e78eaa85ea89fe2a6?s=128

garyfleming

July 22, 2020
Tweet

Transcript

  1. TDD FOR TESTERS A PREVIEW @GARYFLEMING

  2. WHY? @garyfleming

  3. 1: CONFUSED SPEAKER @garyfleming

  4. 2: FEAR, ANGER, CONFUSION, ANXIETY !"#$ @garyfleming

  5. 3: TDD IS MY SHAME @garyfleming

  6. WUT? @garyfleming

  7. ! WHY SHOULD I KEEP LISTENING? > TDD: the What.

    > Why it matters to Testers > How to engage with Devs @garyfleming
  8. YOU ARE GOOD ENOUGH @garyfleming

  9. PART 1. FEAR @garyfleming

  10. > Testing practice... Not really > Design Strategy... Maybe >

    Development practice... Probably @garyfleming
  11. @garyfleming

  12. NO ONE TRUE TDD @garyfleming

  13. ANCHOR TERMS @garyfleming

  14. THE BASICS: RED - GREEN - REFACTOR @garyfleming

  15. THE BASICS: RED > Assertion Failure > Unexpected Exceptions >

    Missing code @garyfleming
  16. THE BASICS: GREEN @garyfleming

  17. THE BASICS: REFACTOR Change code without changing functionality. @garyfleming

  18. METZ SAYS > Thorough > Stable > Fast > Few

    @garyfleming
  19. ESSENTIAL: MUST. SEE. TEST. FAIL @garyfleming

  20. USEFUL: THE LOOP SHOULD BE MUCH SMALLER. @garyfleming

  21. PROBLEM: PEOPLE FORGET TO REFACTOR @garyfleming

  22. PROBLEM: RED - GREEN - REFACTOR ISN'T ENOUGH @garyfleming

  23. TWIST: SELECTION AND NAMING @garyfleming

  24. PART 2: CONFUSION @garyfleming

  25. I AM WHAT I AM NOT. @garyfleming

  26. UNIT TESTS @garyfleming

  27. UNIT TESTS > No Database > No network > No

    Filesystem > Must be Parallelisable > Can't have any weird environment set-up @garyfleming
  28. TEST FIRST / TEST-DRIVEN DEVELOPMENT @garyfleming

  29. "Why would I re-write the tests I've already written in

    a TDD- fashion" @garyfleming
  30. PART 3: ANGER @garyfleming

  31. THIS HAS NOTHING TO DO WITH US @garyfleming

  32. @garyfleming

  33. There is nothing so useless as doing efficiently that which

    should not be done at all. -- Drucker @garyfleming
  34. THE RIGHT THING BUILT BADLY IS THE WRONG THING @garyfleming

  35. TESTERS ARE ADVOCATES OF QUALITY @garyfleming

  36. @garyfleming

  37. TDD IS A QUALITY-FIRST APPROACH TO SOFTWARE @garyfleming

  38. REDUCE BUGS BETWEEN 40-80% !!!!!!! @garyfleming

  39. But I Automate Tests At the UI @garyfleming

  40. @garyfleming

  41. PART 4: ANXIETY @garyfleming

  42. @garyfleming

  43. PAIRING / MOBBING @garyfleming

  44. SHIFT LEFT ⬅ @garyfleming

  45. NOT ONLY SHIFT LEFT ⬅➡↗↘⬇⬆↙↖↕↔↪,-⤵/0⤴↩3 @garyfleming

  46. @garyfleming

  47. JOY ! @garyfleming

  48. THANK YOU https://bit.ly/tdd-testers https://github.com/garyfleming/tdd-for-testers @garyfleming