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

Question: Advice on using toEventually with UIViewController/UIView in XCTestCase #1096

Open parvez-keeptruckin opened 9 months ago

parvez-keeptruckin commented 9 months ago

For Nimble version 9.2.1 on Xcode 14/15 while using toEventually on expect that is returning results from UI for example a view getting hidden/displayed, count on UITableView's rows etc, is it advisable to use toEventually for such validations as mentioned above ? Will it lead to any main runloop getting stopped or unresponsive kind of issues ? What is the best practice to use Nimble while writing unit tests that also includes UI for example UIViewController/UIView etc?