An App With SCA: State Testing

How to test the state of your SwiftUI and Composable Architecture app.

Create a test project.

The Unit Testing Bundle template

How do tests work in SCA

Creating the Store

Controlling your tests.

Test must be repeatable.

Asserting the State

Testing Effects and Dependencies

The test after a failure.

Hi everybody, I’m Riccardo. Senior iOS Engineer at Bending Spoons, I breathe iOS development: apps and tools. I love to share my knowledge with others.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store