Save 37% off PRO during our Black Friday Sale! »

Feature. Tests. Implementation.

Feature. Tests. Implementation.

1433d0176e764f9ce48f70673baa72e8?s=128

Jay Hayes

April 26, 2017
Tweet

Transcript

  1. @iamvery ♥ FEATURE. TESTS. IMPL.

  2. @iamvery ♥ MATERIALS bit.ly/rc17tddv1 ✨ ✨ TDD: From Feature to

    Tests to Implementation bit.ly/rc17tddlive
  3. @iamvery ♥ FEATURE. TESTS. IMPL.

  4. @iamvery ♥ bit.ly/rc17tddv1

  5. @iamvery ♥ bit.ly/rc17tddv1 ✍

  6. @iamvery ♥ bit.ly/rc17tddv1

  7. @iamvery ♥ bit.ly/rc17tddv1

  8. Jay Hayes https://iamvery.com — @iamvery

  9. @iamvery ♥

  10. None
  11. We develop.

  12. We teach.

  13. We write.

  14. @iamvery ♥ bit.ly/rc17tddv1 Why write tests?

  15. @iamvery ♥ bit.ly/rc17tddv1 DEFINE DONE

  16. @iamvery ♥ bit.ly/rc17tddv1 CONFI DENCE

  17. @iamvery ♥ bit.ly/rc17tddv1 What types of tests are there?

  18. @iamvery ♥ bit.ly/rc17tddv1 acceptance unit model system smoke integration load

  19. @iamvery ♥ bit.ly/rc17tddv1 INTEGRATED. ISOLATED.

  20. @iamvery ♥ bit.ly/rc17tddv1 INTEGRATED. Plays well with others.

  21. @iamvery ♥ bit.ly/rc17tddv1 VERIFY BEHAVIOR

  22. @iamvery ♥ bit.ly/rc17tddv1 SYSTEM

  23. @iamvery ♥ bit.ly/rc17tddv1 ISOLATED. Lonely, like a wolf.

  24. @iamvery ♥ bit.ly/rc17tddv1 DRIVE DESIGN

  25. @iamvery ♥ bit.ly/rc17tddv1 Other names define purpose.

  26. @iamvery ♥ bit.ly/rc17tddv1 Acceptance Tests acceptable behavior. “feature”

  27. @iamvery ♥ bit.ly/rc17tddv1 Load Test system resilience. “pressure”

  28. @iamvery ♥ bit.ly/rc17tddv1 Smoke Low coverage, high level “sanity”

  29. @iamvery ♥ bit.ly/rc17tddv1 ETC.

  30. @iamvery ♥ bit.ly/rc17tddv1 THEY’RE ALL INTEGRATED

  31. @iamvery ♥ bit.ly/rc17tddv1 What about paradigms?

  32. @iamvery ♥ bit.ly/rc17tddv1 TDD

  33. @iamvery ♥ bit.ly/rc17tddv1 BDD

  34. @iamvery ♥ bit.ly/rc17tddv1 ADD

  35. @iamvery ♥ bit.ly/rc17tddv1 TBH

  36. @iamvery ♥ bit.ly/rc17tddv1 IDC

  37. @iamvery ♥ bit.ly/rc17tddv1 Methodology.

  38. @iamvery ♥ bit.ly/rc17tddv1 Documentation.

  39. @iamvery ♥ bit.ly/rc17tddv1 Communicate intent.

  40. @iamvery ♥ bit.ly/rc17tddv1 You are here

  41. @iamvery ♥ bit.ly/rc17tddv1 Ok, tell me what to do.

  42. @iamvery ♥ bit.ly/rc17tddv1 STEP 1

  43. @iamvery ♥ bit.ly/rc17tddv1 Acceptance ✍

  44. @iamvery ♥ bit.ly/rc17tddv1 Integrated.

  45. @iamvery ♥ bit.ly/rc17tddv1 User perspective.

  46. @iamvery ♥ bit.ly/rc17tddv1 Make stuff up.

  47. @iamvery ♥ bit.ly/rc17tddv1 Write the test you want.

  48. @iamvery ♥ bit.ly/rc17tddv1 Last test to pass.

  49. @iamvery ♥ bit.ly/rc17tddv1 STEP 2

  50. @iamvery ♥ bit.ly/rc17tddv1 Run it.

  51. @iamvery ♥ bit.ly/rc17tddv1 Listen.

  52. @iamvery ♥ bit.ly/rc17tddv1 STEP 3

  53. @iamvery ♥ bit.ly/rc17tddv1 Try to make it happy.

  54. @iamvery ♥ bit.ly/rc17tddv1 Zoom in.

  55. @iamvery ♥ bit.ly/rc17tddv1 Build units♻

  56. @iamvery ♥ bit.ly/rc17tddv1 Isolated.

  57. @iamvery ♥ bit.ly/rc17tddv1 GOTO 2

  58. @iamvery ♥ bit.ly/rc17tddv1 …

  59. @iamvery ♥ bit.ly/rc17tddv1 ✅

  60. @iamvery ♥ bit.ly/rc17tddv1 BEWARE

  61. @iamvery ♥ bit.ly/rc17tddv1 “NOOOPE”

  62. @iamvery ♥ https://github.com/testdouble/contributing-tests/wiki/Testing-Pyramid

  63. @iamvery ♥ bit.ly/rc17tddv1 TL;DR coupling

  64. @iamvery ♥ bit.ly/rc17tddv1 OVER TESTING

  65. @iamvery ♥ bit.ly/rc17tddv1

  66. @iamvery ♥ bit.ly/rc17tddv1 SUPER POWERS +

  67. @iamvery ♥ bit.ly/rc17tddv1 MORE PRODUCTIVE

  68. @iamvery ♥ bit.ly/rc17tddv1 EASIER N THE BRAIN

  69. @iamvery ♥ bit.ly/rc17tddv1 DEMO

  70. QUEST IONS? @iamvery ♥ bit.ly/rc17tddv1

  71. / YOUR TURN @iamvery ♥ bit.ly/rc17tddv1

  72. @iamvery ♥ bit.ly/rc17tddv1 YOUR FIRST TEST

  73. QUEST IONS? @iamvery ♥ bit.ly/rc17tddv1

  74. / YOUR TURN @iamvery ♥ bit.ly/rc17tddv1

  75. @iamvery ♥ bit.ly/rc17tddv1 NEW INTERFACE

  76. QUEST IONS? @iamvery ♥ bit.ly/rc17tddv1

  77. / YOUR TURN @iamvery ♥ bit.ly/rc17tddv1

  78. @iamvery ♥ bit.ly/rc17tddv1 GET REAL

  79. QUEST IONS? @iamvery ♥ bit.ly/rc17tddv1

  80. / YOUR TURN @iamvery ♥ bit.ly/rc17tddv1

  81. @iamvery ♥ bit.ly/rc17tddv1 WRAP IT

  82. QUEST IONS? @iamvery ♥ bit.ly/rc17tddv1

  83. / YOUR TURN @iamvery ♥ bit.ly/rc17tddv1

  84. @iamvery ♥ bit.ly/rc17tddv1 FAKE IT

  85. QUEST IONS? @iamvery ♥ bit.ly/rc17tddv1

  86. / YOUR TURN @iamvery ♥ bit.ly/rc17tddv1

  87. @iamvery ♥ bit.ly/rc17tddv1 INJECT IT

  88. QUEST IONS? @iamvery ♥ bit.ly/rc17tddv1

  89. @iamvery ♥ bit.ly/rc17tddv1 BONUS

  90. @iamvery ♥