Quick / Nimble

A Matcher Framework for Swift and Objective-C
https://quick.github.io/Nimble/documentation/nimble/
Apache License 2.0
4.8k stars 596 forks source link

Is this framework support SwiftUI Unit / UI testing #1073

Closed Suneel-Gunupudi closed 1 year ago

Suneel-Gunupudi commented 1 year ago

My new project wants to start with SwiftUI, so how to write test cases for SwiftUI classes and all the views.

younata commented 1 year ago

SwiftUI does not support unit testing at the moment.

The only way to test swiftui components is through UI testing. Which Nimble works with, but we don't ship any custom matchers for ui tests.