Kolos65 / Mockable

A Swift macro driven auto-mocking library.
MIT License
199 stars 14 forks source link

[Feature request] Async verification support #35

Closed hainayanda closed 3 months ago

hainayanda commented 3 months ago

Some of the mocks might be called in an async manner, and thus the verification might fail because the method is not called yet.

It would be nice if it had some async feature similar to Quick/Nimble toEventually built-in in Mockable:

// wait until routeToHome called once
await verify(mockRouter).routeToHome().eventuallyCalled(count: .once)
hainayanda commented 3 months ago

I think I could help with this features. I'll create a PR for this.

hainayanda commented 3 months ago

@Kolos65 Here's the PR thanks!