You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 23:22:08 UTC
[GitHub] [beam] damccorm opened a new issue, #21377: Find a way to set a default global per-test timeout for Java Java unit tests
damccorm opened a new issue, #21377:
URL: https://github.com/apache/beam/issues/21377
Apparently java unit tests don't have timeouts. And as far as I can tell, Junit lets you set timeouts for individual tests and test classes, but provides no easy way to set a global timeout across multiple classes.
Imported from Jira [BEAM-13523](https://issues.apache.org/jira/browse/BEAM-13523). Original Jira may contain additional context.
Reported by: ibzib.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damccorm commented on issue #21377: Find a way to set a default global per-test timeout for Java Java unit tests
Posted by GitBox <gi...@apache.org>.
damccorm commented on issue #21377:
URL: https://github.com/apache/beam/issues/21377#issuecomment-1146870399
Hey @gpt3ch! That definitely seems reasonable to me, but I also don't have a ton of context on the Java test suites (I just migrated the issue to GitHub, this was originally reported by @ibzib).
Tagging a few folks who might have more context here in case they have thoughts: @ibzib, @klk, @kileys, or @y1chi
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] gpt3ch commented on issue #21377: Find a way to set a default global per-test timeout for Java Java unit tests
Posted by GitBox <gi...@apache.org>.
gpt3ch commented on issue #21377:
URL: https://github.com/apache/beam/issues/21377#issuecomment-1146856011
Hello @damccorm , I started looking at this issue. After reading more about this, a way to implement a global timeouts for the unit tests is to create a base test class and specify a Timeout rule in it, then make all the test classes inherit the base test class, this will make all the test cases timeout if they cross the threshold without having to specify @Timeout annotation over each test method. Is this an acceptable solution?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Find a way to set a default global per-test timeout for Java Java unit tests [beam]
Posted by "sulthan309 (via GitHub)" <gi...@apache.org>.
sulthan309 commented on issue #21377:
URL: https://github.com/apache/beam/issues/21377#issuecomment-2081108104
Hello @damccorm, 'Global declarative Timeout' feature is implemented in Junit from Junit 5.5 version where we can set the global timeout for all the TCs.
Documentation : https://junit.org/junit5/docs/5.5.0/user-guide/index.html#writing-tests-declarative-timeouts (section **2.19.2. Default Timeouts**)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org