Unit Testing Asynchronous Code in Swift
This is a cross-post from my blog. The reason I am not posting full article on Medium is that I don’t want to give out my content to a third party. Additionally, you’ll get better reading experience with code highlight and formulae.
Learn three patterns of unit testing async code:
- Mocking
- Signaling
- Test before / test after
You can read the article here.