Reliably testing code that adopts Swift Concurrency?

Putting my thoughts here (which have already been expressed)... I'm trying to build a feature that uses swift async heavily and testing the feature in (in my case with Quick/Nimble but could easily be XCTest) in a maintainable/non-flakey way is proving to be impossible. None of the above solutions are both elegant and guaranteed, and this seems to be a major showstopper for feature development unless Apple/swift team provides tool to do so. Randomly flaking tests is a nightmare for large teams building apps.

9 Likes