Man, I love the Construction Builder pattern for making test fixtures that vary. #UnitTesting #Microtesting
Watched “iOS micro testing with ViewInspector, introduced by creator Alexey Naumov” https://youtu.be/ylGhs1Unz7c — a good intro to ViewInspector, the only tool for #microtesting #SwiftUI! I learned:
- How Alexey came up with the idea
- Why certain inspectors need an index (confused me before)
- Alexey uses ViewInspector’s microtests to stay on top of underlying changes to SwiftUI
Since this interview, ViewInspector gained `find` so tests can be ignorant of view structure
@TheSwiftDojo #tw