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

Default timeout #140

Closed
wokier opened this issue Sep 14, 2010 · 5 comments
Closed

Default timeout #140

wokier opened this issue Sep 14, 2010 · 5 comments
Labels

Comments

@wokier
Copy link

wokier commented Sep 14, 2010

add the ability to define a global default timeout
behavior similar to @test(timeout=1000)
Programatically or passing JVM arg -Djunit.default.timeout=n
Something like this (default timeout part):
http://www.attivio.com/blog/56-java-development/379-enhancing-junit-with-default-timeouts-and-stack-traces.html

@wokier
Copy link
Author

wokier commented Sep 15, 2010

Timeout is a good element for a default timeout at TestCase/class level.

@dsaff
Copy link
Member

dsaff commented Mar 4, 2011

Does that mean you're all set, or you're still requesting the feature?

@wokier
Copy link
Author

wokier commented Apr 21, 2011

Hi
The second comment was for precise that i have noticed the existence of Timeout for the class level,
but is is not what i was thinking about, i mean a global level.
What do you think of the solution in the article linked ?

@wokier wokier closed this as completed Apr 21, 2011
@dsaff
Copy link
Member

dsaff commented Apr 29, 2011

I think the solution linked makes sense as an extension, and I'd welcome such a contribution to the junit.contrib project. Thanks.

@mircea-pop
Copy link

Was there any such an extension ever build? Sounds like a very good way of terminating hanging tests

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

No branches or pull requests

3 participants