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

Use Testing to Develop Better Software Faster

Use Testing to Develop Better Software Faster

Testing doesn't always get the attention it deserves in software development. Many developers claim to be bad at it, or are just not that interested. (These may or may not be related.)

As developers, our job is to deliver working software. With the shift to CI/CD and the move to the cloud, the need to have the right feedback at the right time only increases. There are many ways that testing can help us with that. Not only can testing help us verify our solution and prevent us from breaking things, it can also help us design our software, find flaws in our architecture and come up with better solutions. In this talk I will highlight some of the many ways that testing can help you to develop better software faster.

Marit van Dijk

July 19, 2022
Tweet

More Decks by Marit van Dijk

Other Decks in Technology

Transcript

  1. @MaritvanDijk77

    github.com/mlvandijk

    medium.com/@mlvandijk
    Use Testing to
    Develop Better
    Software Faster
    JBCN Barcelona - July 19th, 2022

    View Slide

  2. Some tests…
    @MaritvanDijk77

    View Slide

  3. @MaritvanDijk77

    View Slide

  4. @MaritvanDijk77

    View Slide

  5. Build quality in
    @MaritvanDijk77

    View Slide

  6. https://danashby.co.uk/2016/10/19/continuous-testing-in-devops/ @MaritvanDijk77

    View Slide

  7. https://janetgregory.ca/testing-from-a-holistic-point-of-view/


    @MaritvanDijk77

    View Slide

  8. @MaritvanDijk77

    View Slide

  9. The right
    feedback
    at the
    right time
    @MaritvanDijk77

    View Slide

  10. Ask questions
    @MaritvanDijk77

    View Slide

  11. @MaritvanDijk77

    View Slide

  12. @MaritvanDijk77

    View Slide

  13. https://elizabethzagroba.com/posts/2019/2019-01-25_have-i-tried-enough-weird-stuff/
    @ezagroba
    @MaritvanDijk77

    View Slide

  14. @MaritvanDijk77

    View Slide

  15. https://github.com/minimaxir/big-list-of-naughty-strings
    @MaritvanDijk77

    View Slide

  16. https://twitter.com/sempf/status/514473420277694465?s=20&t=ZDqpc0arpJZeUBL6M1J3jg


    https://www.sempf.net/post/On-Testing1
    @MaritvanDijk77

    View Slide

  17. How are we going to test this?
    @MaritvanDijk77

    View Slide

  18. Test pyramid
    @MaritvanDijk77
    https://martinfowler.com/bliki/TestPyramid.html

    View Slide

  19. @MaritvanDijk77

    View Slide

  20. Build testability in
    @MaritvanDijk77

    View Slide

  21. Use the right tools
    @MaritvanDijk77

    View Slide

  22. Use tools as intended
    @MaritvanDijk77

    View Slide

  23. @MaritvanDijk77

    View Slide

  24. Use them as intended
    @MaritvanDijk77

    View Slide

  25. Tests should increase confidence
    @MaritvanDijk77

    View Slide

  26. @MaritvanDijk77

    View Slide

  27. Tests should be reliable
    @MaritvanDijk77

    View Slide

  28. @MaritvanDijk77

    View Slide

  29. @MaritvanDijk77

    View Slide

  30. Run your tests
    @MaritvanDijk77

    View Slide

  31. Run your tests
    @MaritvanDijk77

    View Slide

  32. Never


    trust a test


    you haven’t
    seen fail
    @MaritvanDijk77

    View Slide

  33. @MaritvanDijk77

    View Slide

  34. A failing test should tell you
    exactly what’s wrong quickly
    @MaritvanDijk77

    View Slide

  35. @MaritvanDijk77
    @MaritvanDijk77
    @KevlinHenney


    at GoTo Amsterdam

    View Slide

  36. Each test should test one thing
    @MaritvanDijk77

    View Slide

  37. Use
    meaningful,
    descriptive
    names
    @MaritvanDijk77

    View Slide

  38. @MaritvanDijk77
    Readability of your tests

    View Slide

  39. @MaritvanDijk77

    View Slide

  40. @MaritvanDijk77

    View Slide

  41. TL; DR: Test your code!
    @MaritvanDijk77
    https://www.redbubble.com/people/hogfish (Trish Khoo @hogfish)

    View Slide

  42. @MaritvanDijk77

    github.com/mlvandijk

    medium.com/@mlvandijk
    Use Testing to
    Develop Better
    Software Faster
    JBCN Barcelona - July 19th, 2022

    View Slide