Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1432

Add extension interface with two implementations for trimStackTrace

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-M6, 3.0
    • Component/s: None
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                tibordigana Tibor Digana
                Reporter:
                tibordigana Tibor Digana
              • Votes:
                3 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m