File tree 2 files changed +14
-1
lines changed
main/java/io/cucumber/core/runtime
test/java/io/cucumber/core/backend
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public void runAfterAllHooks() {
95
95
public void finishTestRun () {
96
96
log .debug (() -> "Sending test run finished event" );
97
97
Throwable cucumberException = getThrowable ();
98
- emitTestRunFinished (cucumberException );
98
+ collector . executeAndThrow (() -> emitTestRunFinished (cucumberException ) );
99
99
}
100
100
101
101
public Throwable getThrowable () {
Original file line number Diff line number Diff line change 2
2
3
3
import io .cucumber .core .backend .Pending ;
4
4
5
+ import java .io .PrintStream ;
6
+ import java .io .PrintWriter ;
7
+
5
8
@ Pending
6
9
public final class StubPendingException extends RuntimeException {
7
10
@@ -13,4 +16,14 @@ public StubPendingException(String message) {
13
16
super (message );
14
17
}
15
18
19
+ @ Override
20
+ public void printStackTrace (PrintWriter printWriter ) {
21
+ printWriter .print (getMessage ());
22
+ }
23
+
24
+ @ Override
25
+ public void printStackTrace (PrintStream printStream ) {
26
+ printStream .print (getMessage ());
27
+ }
28
+
16
29
}
You can’t perform that action at this time.
0 commit comments