-
Notifications
You must be signed in to change notification settings - Fork 940
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
Use JUnit Jupiter's global timeout settings #2425
Conversation
Motivation: JUnit Jupiter provides various properties that controls the timeout behavior globally, and we could use them instead of manually specifying `Timeout` annotations with magic numbers. Modifications: - Disable timeout on debug by default. - Set 60-second timeout for all testables and life cycle methods. - Remove `TestUtil.withTimeout()` Result: No need to add `Timeout` annotation
Codecov Report
@@ Coverage Diff @@
## master #2425 +/- ##
============================================
+ Coverage 72.99% 73.04% +0.04%
+ Complexity 10753 10752 -1
============================================
Files 946 946
Lines 41804 41794 -10
Branches 5206 5206
============================================
+ Hits 30515 30528 +13
+ Misses 8627 8604 -23
Partials 2662 2662
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow Jupiter is making fast, good progress
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :-)
Special thanks to @KarboniteKream for inspiration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Motivation: JUnit Jupiter provides various properties that controls the timeout behavior globally, and we could use them instead of manually specifying `Timeout` annotations with magic numbers. Modifications: - Disable timeout on debug by default. - Set 60-second timeout for all testables and life cycle methods. - Remove `TestUtil.withTimeout()` - Update JUnit from 5.5.2 and 4.12 to 5.6.0 and 4.13 Result: No need to add `Timeout` annotation
Motivation:
JUnit Jupiter provides various properties that controls the timeout
behavior globally, and we could use them instead of manually specifying
Timeout
annotations with magic numbers.Modifications:
TestUtil.withTimeout()
Result:
No need to add
Timeout
annotation