¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Swift UI for iOS Apps - What I'm learning...


 
Edited

I've Learned how to TDD the LEGACY out of my code - with help from Lancer Kind & TDD.Academy. ?You can watch Lance walk me thru this process on Twitch.TV.Tdd.Academy??Episode 16. iOS Reverse TDD.

Lancer's process is to comment out the legacy code in a method. ?Then write a test that makes you uncomment just a bit of that method's code... write another test... uncomment... test...uncomment. ?Reverse TDD he calls it.

He also showed me how to test a randomCard method... which I had a test that worked about 52 out of 53 times.... a bit of a flaky test.

OK ... he may have lost me as he wanted to make annonous classes inside of functions inside of test - that were partial mocks... of classes... Mind-Blown for a simple PIG.

Join [email protected] to automatically receive all group messages.