Skip to content
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

Asynchronous Prop #214

Closed
lukiano opened this issue Jan 14, 2016 · 5 comments
Closed

Asynchronous Prop #214

lukiano opened this issue Jan 14, 2016 · 5 comments

Comments

@lukiano
Copy link

lukiano commented Jan 14, 2016

This is a feature request for a Prop whose apply method has the signature
def apply(prms: Parameters): Future[Result]

And the necessary modifications in methods like Test.check and Prop.forAll

Coupling this with a Test framework that accepts Futures, like ScalaTest 3, would give us the ability to test Futures in ScalaJS where there is no Await.result()

@mpilquist
Copy link
Member

I'm also very interested in this -- we need it for Scala.js testing in https://github.com/functional-streams-for-scala/fs2.

@toebbel
Copy link

toebbel commented May 28, 2020

Would be nice to have some kind of AsyncScalaCheckPropertyChecks that plays well with AsyncFlatSpec of scalatest.

@akilegaspi
Copy link

Has there been any consideration for doing this?

@mpilquist
Copy link
Member

This is now supported by a companion project: https://github.com/typelevel/scalacheck-effect

@rossabaker
Copy link
Member

I always thought it was coupled to cats-effect, but it even works with MonadError, so even the original request for Future should be covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants