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.
- is related to
-
SUREFIRE-1226 Surefire trims all stack trace elements except those in the test that failed
-
- Closed
-
- links to