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

Programowanie wspierane przez testy po londyńsku

Programowanie wspierane przez testy po londyńsku

Avatar for Jakub Zalas

Jakub Zalas

May 27, 2023
Tweet

More Decks by Jakub Zalas

Other Decks in Technology

Transcript

  1. - Behaviour - Veri fi cation - The chain premise

    - Collaboration tests - Test doubles - Contract tests - Mocking hell PLAN
  2. VS

  3. VS

  4. “TEST A CHAIN BY TESTING EACH LINK” MICHAEL "GEEPAW" HILL

    https://www.geepawhill.org/2018/01/16/underplayed-the-chain-premise-in-depth/
  5. WE GET TO CHOOSE WHEN AND WHERE WE BREAK THE

    DEPENDENCY CHAIN FOR TESTING
  6. WE HAVE DETECTED UNUSUALLY HIGH SPENDING ON YOUR CARD IN

    THESE CATEGORIES: • YOU SPENT £101.19 ON FOOD • YOU SPENT £27.70 ON ENTERTAINMENT https://github.com/testdouble/contributing-tests/wiki/Unusual-Spending-Kata
  7. THANK YOU Verify behaviour Mock roles, not objects Listen to

    your tests Leverage test doubles as a TDD tool @jakub_zalas @jakub_zalas @jakzal