-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After / delay with verify #277
Comments
Hey there, at the moment Cuckoo does not support these async matchers. It's something that I can imagine is used often, as others have already asked. However, at the moment our greatest priority is generics support. Though you can implement this functionality if you're up for it and submit a PR. It will probably need to be a part of Cuckoo sooner or later. |
@MatyasKriz |
@sk409 @MatyasKriz any news on this topic? :) |
Yeah, some time ago I reviewed the PR but didn't publish the comments. When I got to the PR again, I was unsure if the comments were valid, so I'll have to do another review round. |
Hello,
Is there an option in Cuckoo to use
after
or otherdelay
option with matcher? Something similar to: VerificationAfterDelayFor now I combined it with
expectations
but I am not sure whether it's the best way.USE CASE:
I wanted to test whether some methods were invoked in
Presenter
which usedTimer
. I could of course mock thisTimer
as it is usually done with API requests but for such simple scenario I think delay in verify would be better.Regards
The text was updated successfully, but these errors were encountered: