You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/ReleaseNotes4.12.md
+24-6
Original file line number
Diff line number
Diff line change
@@ -136,9 +136,23 @@ If a custom failure message is not provided, a default message is used.
136
136
When a test times out, a `org.junit.runners.model.TestTimedOutException` is now thrown instead of a plain `java.lang.Exception`.
137
137
138
138
139
-
### [Pull request #742:](https://github.com/junit-team/junit/pull/742)`Timeout` exceptions now include stack trace from stuck thread (experimental)
139
+
### [Pull request #742:](https://github.com/junit-team/junit/pull/742)[Pull request #986:](https://github.com/junit-team/junit/pull/986)`Timeout` exceptions now include stack trace from stuck thread (experimental)
140
140
141
-
`Timeout` exceptions try to determine if there is a child thread causing the problem, and if so its stack trace is included in the exception in addition to the one of the main thread. This feature must be enabled with a rule such as `new Timeout(100, TimeUnit.MILLISECONDS).lookingForStuckThread(true)`.
141
+
`Timeout` exceptions try to determine if there is a child thread causing the problem, and if so its stack trace is included in the exception in addition to the one of the main thread. This feature must be enabled with the timeout rule by creating it through the new `Timeout.builder()` method:
### [Pull request #544:](https://github.com/junit-team/junit/pull/544) New constructor and factories in `Timeout`
@@ -147,17 +161,21 @@ When a test times out, a `org.junit.runners.model.TestTimedOutException` is now
147
161
Anew constructor is available: `Timeout(long timeout, TimeUnit unit)`.It enables you to use different granularities of time units like `NANOSECONDS`, `MICROSECONDS`, `MILLISECONDS`, and `SECONDS`.Examples:
0 commit comments