Swift Community #4 (Part 1) – Code Generation (with Krzysztof Zabłocki)

preview_player
Показать описание
#iOS #swift #softwaredeveloper #iosdeveloper

Thank you for watching this video 🙌

Timecodes
00:00 – Intro
00:40 – Why generate Swift code?
04:45 – Setting up Sourcery
08:30 – Creating our first template
12:23 – Generating equality functions
14:45 – Phantom Protocols
19:28 – Sourcery Documentation
22:15 – Generating mocks
25:13 – Outro

•••••••••••• Music By •••••••••••••
"Picket Fences''
Jay Man - OurMusicBox
Рекомендации по теме
Комментарии
Автор

Did you find this episode useful? Are you planning on using what we discussed it in your apps? Let us know in the comments 🚀

v_pradeilles
Автор

I pushed for the adoption of Sourcery in my team so we can leverage AutoMockable to generate mock for our protocols. Saves us from a lot of work and headaches. At this point I don't think you can effectively write tests for Swift without AutoMockable.

Thanks Krzysztof!

schismirt
Автор

keep watching to the end. the final example which shows you how to create mocks of protocols to use for writing tests is amazing.

andybezaire