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

Surefire trims too much stack, with trimStackTrace=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.14.1
    • 2.15
    • Maven Surefire Plugin
    • None
    • geb, selenium, spock, groovy, mvn 3.0.5, linux

    Description

      With trimStackTrace=true, surefire trims too much of the stack, at least in some cases. In particular, selenium generates a particularly long and interesting stack trace, and surefire trims away all the useful information, including the stack frame of the test itself, which is the most important piece of information.

      In the attached project (mvn_stacktrace.tar.gz), use "mvn test" to see the trimmed stack trace (it uses Firefox to run the test). Running with "mvn -DtrimStackTrace=false test" shows the full stack trace, including the vital line "at StackTraceTest.stackTraceTest(StackTraceTest.groovy:8)" which was trimmed during the first run.

      See an attached typescript of a session showing both runs.

      Attachments

        1. mvn_stacktrace.tar.gz
          1 kB
          Christopher Mosher
        2. typescript
          14 kB
          Christopher Mosher

        Activity

          People

            krosenvold Kristian Rosenvold
            cmosher01 Christopher Mosher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: