File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
runner/android_junit_runner
java/androidx/test/internal/runner/listener Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
** Bug Fixes**
8
8
9
+ * When logging test exceptions, use Log's built-in support for throwables to avoid stack truncation
10
+
11
+
9
12
** New Features**
10
13
11
14
** Breaking Changes**
Original file line number Diff line number Diff line change @@ -58,16 +58,14 @@ public void testFinished(Description description) throws Exception {
58
58
@ Override
59
59
public void testFailure (Failure failure ) throws Exception {
60
60
Log .e (TAG , "failed: " + failure .getDescription ().getDisplayName ());
61
- Log .e (TAG , "----- begin exception -----" );
62
- Log .e (TAG , failure .getTrace ());
61
+ Log .e (TAG , "----- begin exception -----" , failure .getException ());
63
62
Log .e (TAG , "----- end exception -----" );
64
63
}
65
64
66
65
@ Override
67
66
public void testAssumptionFailure (Failure failure ) {
68
67
Log .e (TAG , "assumption failed: " + failure .getDescription ().getDisplayName ());
69
- Log .e (TAG , "----- begin exception -----" );
70
- Log .e (TAG , failure .getTrace ());
68
+ Log .e (TAG , "----- begin exception -----" , failure .getException ());
71
69
Log .e (TAG , "----- end exception -----" );
72
70
}
73
71
You can’t perform that action at this time.
0 commit comments