Integrate Combine Into an App, Episode 9: Test with Given-When-Then | raywenderlich.com

As with all other code, your Combine pipeline code can, and should be, tested. The Given-When-Then pattern is a great way to layout your test code, ensuring that your code works as intended.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/22070915-integrate-combine-into-an-app/lessons/9

I really never considered using Combine when testing. I am excited to use this new approach with some tests that I need, but really didn’t have an elegant way to test. Thank you Josh for your insights and clear explanations.