Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Алексей Демедецкий | Unit testing in swift

564 Aufrufe

Veröffentlicht am

As a developers we always want to push our limits further and produce features quick and with high internal quality. In my team we write a lot of tests, and I want to share some learned lessons with you.
I will show different decomposition technics and testing approaches. I will review and compare several existing libraries for unit tests.

Veröffentlicht in: Technologie
  • ⇒ www.HelpWriting.net ⇐ is a good website if you’re looking to get your essay written for you. You can also request things like research papers or dissertations. It’s really convenient and helpful.
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1lite.top/23EvA ◀ ◀ ◀ ◀
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • I'd advise you to use this service: ⇒ www.WritePaper.info ⇐ The price of your order will depend on the deadline and type of paper (e.g. bachelor, undergraduate etc). The more time you have before the deadline - the less price of the order you will have. Thus, this service offers high-quality essays at the optimal price.
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1lite.top/23EvA ◀ ◀ ◀ ◀
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier

Алексей Демедецкий | Unit testing in swift

  1. 1. DO YOU WANT TO TALK ABOUT UNIT TESTIG IN SWIFT? #itsat @daloog ¯_( )_/¯ Alexey Demedetskiy Sigma Software
  2. 2. THANK YOU APPLE!
  3. 3. 99% OF IOS APPS ARE SHIPPED WITH UNIT TESTING!
  4. 4. WORKOUT TIME!!
  5. 5. ( °□°)
  6. 6. ARE UNIT TESTS WORTH IT? HTTP://STACKOVERFLOW.COM/QUESTIONS/237000/IS- THERE-HARD-EVIDENCE-OF-THE-ROI-OF-UNIT-TESTING
  7. 7. TIME += 30% HTTP://COLLABORATION.CSC.NCSU.EDU/LAURIE/PAPERS/ TDDPAPERV8.PDF
  8. 8. DEFECTS -= 60% HTTP://RESEARCH.MICROSOFT.COM/EN-US/GROUPS/ESE/ NAGAPPAN_TDD.PDF
  9. 9. TESTS ARE GREAT!
  10. 10. !(ಠ ಠ!)
  11. 11. WHY WE ARE NOT RUBY?
  12. 12. 1) MARKET HUSTLE
  13. 13. 2) APPLE FRAMEWORKS
  14. 14. 3) LACK OF EXPERTISE
  15. 15. 4) OUTSOURCE
  16. 16. ⌛ ➡ 💰
  17. 17. UNIT TESTS ARE WRITTEN BY DEVELOPERS.
  18. 18. TESTS ARE DEVELOPERS RESPONSIBILITY
  19. 19. DON’T SELL THEM WRITE THEM
  20. 20. WHY DO WE NEED TO WRITE TESTS?
  21. 21. 1) REFACTORING
  22. 22. 2) CONFIDENCE
  23. 23. 3) CATCHING ERRORS
  24. 24. 4) REGRESSION
  25. 25. 🐞➡❌➡⌨➡✅
  26. 26. HOW TO WRITE TESTS?
  27. 27. 🍕 🛠 🌌
  28. 28. UNIT AS SMALLEST LOGIC CONTAINER 🍕
  29. 29. FUNCTION
  30. 30. INPUT ➡ OUTPUT
  31. 31. PURE FUNCTIONS
  32. 32. METHOD
  33. 33. MUTATION OF STATE
  34. 34. VOID ➡ VOID
  35. 35. INPUT ➡ OUTPUT
  36. 36. DOMAIN == CODOMAIN
  37. 37. ALL MY CODE IS FUNCTIONAL, WHERE EVERY FUNCTION TAKES ONE ARGUMENT: ALL MY PROGRAM'S STATE.
  38. 38. OBJECT
  39. 39. DEPENDENCIES
  40. 40. TRANSITIVE DEPENDENCIES
  41. 41. INITIAL STATE
  42. 42. ORDER OF OPERATIONS
  43. 43. UNIT AS SMALLEST LOGIC CONTAINER 🍕
  44. 44. 🍕 🛠 🌌
  45. 45. TESTS 🛠
  46. 46. GWT
  47. 47. GIVEN WHEN THEN
  48. 48. AAA
  49. 49. ARRANGE ACT ASSERT
  50. 50. SRV
  51. 51. SETUP RECORD VERIFY
  52. 52. FUNCTIONS - GWT
  53. 53. METHODS - AAA
  54. 54. OBJECTS - SRV
  55. 55. VALUE TESTS
  56. 56. BEHAVIOR TESTS
  57. 57. INTEGRATION TESTS
  58. 58. CLIENT TESTS
  59. 59. PYRAMID OF TESTS HTTP://TODDLITTLEWEB.COM/WORDPRESS/2014/06/23/ THE-TESTING-DIAMOND-AND-THE-PYRAMID-2/
  60. 60. TEST COVERAGE HTTP://MARTINFOWLER.COM/BLIKI/ TESTCOVERAGE.HTML
  61. 61. TESTS 🛠
  62. 62. 🍕 🛠 🌌
  63. 63. SIDE EFFECTS 🌌
  64. 64. RETURN VALUE
  65. 65. FUNCTION CALL
  66. 66. STATE CHANGE
  67. 67. SIDE EFFECTS 🌌
  68. 68. 🍕 🛠 🌌
  69. 69. SWIFT
  70. 70. DEPENDENCIES
  71. 71. STRUCT
  72. 72. INTERNAL
  73. 73. PROTOCOL
  74. 74. EXTERNAL
  75. 75. XCTEST
  76. 76. QUICK / NIMBLE HTTPS://GITHUB.COM/QUICK/QUICK
  77. 77. RECORDER HTTPS://GIST.GITHUB.COM/ALEXEYDEMEDETSKIY/ 7A148559C81472A314F7
  78. 78. SWIFT
  79. 79. 🍕 🛠 🌌
  80. 80. 💻
  81. 81. 💻 HTTPS://GITHUB.COM/XNEKOIX/FUNTIONALMVP
  82. 82. HTTP://WWW.AMAZON.COM/WORKING-EFFECTIVELY- LEGACY-MICHAEL-FEATHERS/DP/0131177052
  83. 83. HTTP://WWW.AMAZON.COM/EXTREME-PROGRAMMING- EXPLAINED-EMBRACE-EDITION/DP/0321278658
  84. 84. QUESTIONS: @DALOOG DALOG@ME.COM NOBIDON

×