@qcoding has shared a helpful new technique, courtesy of _his_ reader, for "bypass[ing] SwiftUI app launch during unit testing".
Who doesn't love a fast-launching unit test?
https://qualitycoding.org/bypass-swiftui-app-launch-unit-testing/
@qcoding has shared a helpful new technique, courtesy of _his_ reader, for "bypass[ing] SwiftUI app launch during unit testing".
Who doesn't love a fast-launching unit test?
https://qualitycoding.org/bypass-swiftui-app-launch-unit-testing/
@vermontcoder @qcoding Huh!
How does this compare with pushing the stuff you want to unit test into a separate library?
@vermontcoder @qcoding Yes!
So one way is to suppress the UI, like is presented here. Another option is to separate the UI from the code you want to test via a library so there is no UI to suppress. I *think*.
@vermontcoder @mattiem Putting things into smaller libraries is great, but I don't ever want it to be a requirement.
Also, I want to test Views.