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

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

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.