Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
New description:
Currently, the default value of the config parameter trimStackTrace is set to true. This fix changes the default value.
Old description:
Specify StackTraceInterpreterExtension abstract class with constructor parameter boolean trim and protected getter for trim. Single public method interpret(context): String.
DefaultStackTraceImpl - current implementation that trimmed trace prints only test class
SmartStackTraceImpl - full trace or the following if trimmed (for error):
java.lang.NullPointerException: msg
o.a.s.m.xyz.ExceptionThrownFromHereClass (three classes here max.)
o.a.s.m.NestedStackTraceInTheSamePackage
o.a.s.m.NestedStackTraceInTheSamePackage
...
o.a.s.m.SomeTestInSamePackageTest
o.a.s.m.SomeTestInSamePackageTest
(for failure - assertion failed - only this: )
SomeAssertionError: msg
o.a.s.m.SomeTestInSamePackageTest
o.a.s.m.SomeTestInSamePackageTest
Here is brief package displayed or full Java package if totally different from package in test.
Attachments
Issue Links
- is related to
-
SUREFIRE-1772 Suppressed exceptions not shown in trimmed stack trace
- Open
-
SUREFIRE-1226 Surefire trims all stack trace elements except those in the test that failed
- Closed
-
HADOOP-18701 Generic Build Improvements
- Open
- links to