-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean Runner and Statement stack frames.
Before and after examples: Runner: at com.google.something.SomeTest.someMethod(SomeTest.java:77) at [[Reflective call: 4 frames collapsed (https://goo.gl/aH3UyP) at [[Testing framework: 8 frames collapsed (https://goo.gl/aH3UyP) at junitparams.JUnitParamsRunner.runChild(JUnitParamsRunner.java:421) at junitparams.JUnitParamsRunner.runChild(JUnitParamsRunner.java:386) => at com.google.something.SomeTest.someMethod(SomeTest.java:77) Statement: at com.google.common.truth.ObjectArraySubjectTest.isEqualTo_Same(ObjectArraySubjectTest.java:46) at [[Reflective call: 4 frames collapsed (https://goo.gl/aH3UyP) at [[Testing framework: 4 frames collapsed (https://goo.gl/aH3UyP) at com.google.common.truth.ExpectFailure$3.evaluate(ExpectFailure.java:208) => at com.google.common.truth.ObjectArraySubjectTest.isEqualTo_Same(ObjectArraySubjectTest.java:46) To avoid referring to Runner and Statement from GWT-compatible code, make StackTraceCleaner GWT-incompatible (since it already bails out immediately when called from GWT), and make callers use the new Platform.cleanStackTrace, implemented as a no-op in the GWT version of the class. RELNOTES=Added code to remove Runner and Statement frames from the stack trace. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=191109334
- Loading branch information
1 parent
4a51035
commit d2bb074
Showing
5 changed files
with
107 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters