How to Write SwiftUI Tests That Survive Redesigns https://qualitycoding.org/find-swiftui-views-unit-tests/
Post
qualitycoding.orgFind SwiftUI Views in Unit Tests, the Robust WayWorried your tests will break every time the UI changes? Find SwiftUI views in unit tests the robust way, plus an Xcode snippet that makes it easy
Tests that _stopped_ asserting anything are rare. Tests that _never_ asserted are rare. As the saying goes, "Never trust a test you haven't seen fail." There are two ways to do this. TDD is one, when you're creating new behavior. Mutation testing is the other, when you're testing existing code.
0 reposts1 like