-
Notifications
You must be signed in to change notification settings - Fork 23
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
Async tests #19
Comments
Well, thanks to the glorious Rust community, we have only one type for async. So it's just a matter of Implementing It's not true async, but the runner don't support parallelism for now, so it's all we can do and it seems good enough for now. |
Once #30 (parallelization) gets merged this should be feasible. 💪 |
Given that with #30 we'd have parallelization I'm wondering if rspec itself should have async-awareness at all. The futures crate provides "all the pieces" to do async testing (via Would you agree, @mackwic? |
Well, now that I think of it, a test could have multiple assertions. So, yes. Async asserts may be the way to go. The other advantage I see in an external crate is to limit the scope and keep experimenting without troubling the stabilization of rspec. I don't like the idea of a separated, async version of |
I'll make an organization, so that we can mutualize crates easily. |
I agree.
I saw it, that's great! |
Rust async has come a long way in the last 5 years. Is it possible to use with this project? |
It is possible but it won't be easy, you will have to add `block_on`
everywhere. The async story is still a kind of mess, there is not enough
power in the types to do anything generic like a testing library so I don't
see any progress on this front soon.
Sorry :/
Le ven. 9 sept. 2022 à 05:50, Cameron Taggart ***@***.***> a
écrit :
… Rust async has come a long way in the last 5 years. Is it possible to use
with this project?
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEIIC7VX3OZKGQZWNP4CK3V5KXZJANCNFSM4CKNT7TA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hey. Are there any plans regarding this library feature? Or any vision in general? |
I don't know. But we should think of it.
Ideas:
The text was updated successfully, but these errors were encountered: