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
Incorporate the timeout examples gist into specs2 #322
Comments
I have actually added it to the next specs2 major version. There will also be some control over the execution model which already has a notion of timeout built-in, so you can write: class TestSpec extends Specification { def is = s2"""
test $e1
"""
def e1 = Execution.result {
Thread.sleep(2000)
ok
}.setTimeout(1.seconds)
} |
Excellent, thanks. בתאריך יום חמישי, 22 בינואר 2015, Eric Torreborre notifications@github.com
|
Just a matter of time... I'll try to do that next week (moving houses this week). |
This is published as 2.4.16-SNAPSHOT. |
You rock, thanks! |
Hi,
I just google'd how to timeout an example (like JUnit timeout on @test) and saw your gist.
My question is why not incorporate it into the library?
It's pretty obvious people want it since you created the gist from people's requests (also surfaced in the specs2 google group) and now people have to copy paste this gist into their code causing code duplication and handling something which is, IMO, more in the library scope then in the user's scope.
I'm mainly talking about the "upTo" method BTW
The text was updated successfully, but these errors were encountered: