$30 off During Our Annual Pro Sale. View Details »

Fast, Robust, Accurate Or how to love your tests again

David
November 18, 2022

Fast, Robust, Accurate Or how to love your tests again

An empiric take to testing.

David

November 18, 2022
Tweet

More Decks by David

Other Decks in Technology

Transcript

  1. @xuapsdev Fast, Robust, Accurate (WIP) Or how to love your

    tests again
  2. This is not a talk about opinions

  3. 1 - We progress faster with test

  4. 2 - Bad tests could be worst than no tests

  5. None
  6. So, what is a bad test from an empirical point

    of view?
  7. None
  8. Slow tests

  9. Slow tests False alarms

  10. Slow tests False alarms Di ffi cult to read tests

  11. Brittle tests Slow tests False alarms Di ffi cult to

    read tests
  12. Brittle tests Slow tests False alarms Di ffi cult to

    read tests What else?
  13. 3 properties Speed Detection of regressions Resistance to refactor

  14. Speed

  15. Resistance to refactor

  16. Detection of regression

  17. Resistance to refactor Detection of regressions Speed End to end

    test Trivial tests Brittle tests
  18. Oh boy my tests are really bad…

  19. I am so happy that my tests are so good…

  20. None
  21. Lets get some data

  22. Speed

  23. DEMO

  24. Resistance to refactor

  25. Resistance to refactor

  26. DEMO

  27. Detection of regression

  28. Detection of regression

  29. DEMO

  30. I need to start using this right now

  31. How am I using this data?

  32. To decide how to test something

  33. Tune it!

  34. Tune it! Resistance to refactor Speed Detection of regressions

  35. Tune it! Resistance to refactor Speed Detection of regressions Resistance

    to refactor Detection of regressions Speed End to end test Trivial tests Brittle tests
  36. To decide if write a test is worthy or not

  37. No test is better than a bad test but, then

    we need something else
  38. O b s e r v a b i l

    i t y
  39. @xuapsdev @xuaps@fosstodon.org

  40. Do you want an extra ball?

  41. Maintainability Extra ball

  42. None
  43. @xuapsdev @xuaps@fosstodon.org