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

An Introduction to Unit Testing Logic (in Swift)

An Introduction to Unit Testing Logic (in Swift)

This is the accompanying presentation to the workshop I've given at try! Swift World (https://www.tryswift.co/world).

79fe3c13c618a61329298bdd6a86ec42?s=128

Bas Broek

May 05, 2020
Tweet

Transcript

  1. AN INTRODUCTION TO UNIT TESTING LOGIC (IN SWIFT) BAS BROEK

    @BASTHOMAS 1 — @basthomas, try! Swift World, May 5, 2020
  2. GITHUB.COM/ BASTHOMAS/TESTING- LOGIC-SWIFT 2 — @basthomas, try! Swift World, May

    5, 2020
  3. WHAT IS LOGIC? 3 — @basthomas, try! Swift World, May

    5, 2020
  4. TESTS ARE "JUST" EXAMPLES 4 — @basthomas, try! Swift World,

    May 5, 2020
  5. 5 — @basthomas, try! Swift World, May 5, 2020

  6. NOT IN SWIFT OF COURSE — AS WE HAVE TYPE

    SAFETY. 6 — @basthomas, try! Swift World, May 5, 2020
  7. // given // when // then 7 — @basthomas, try!

    Swift World, May 5, 2020
  8. IT'S NOT (JUST) ABOUT TESTS 8 — @basthomas, try! Swift

    World, May 5, 2020
  9. 9 — @basthomas, try! Swift World, May 5, 2020

  10. TESTS CODE DOCUMENTATION 10 — @basthomas, try! Swift World, May

    5, 2020
  11. HOW DO YOU DEFINE A UNIT TEST? 11 — @basthomas,

    try! Swift World, May 5, 2020
  12. THANKS! BAS BROEK @BASTHOMAS #may5_testing_logic_with_unit_tests 12 — @basthomas, try! Swift

    World, May 5, 2020