JBehave
  1. JBehave
  2. JBEHAVE-806

Stack traces not properly formatted on Windows

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.8
    • Fix Version/s: 3.6.9, 3.7
    • Component/s: Core
    • Labels:
      None
    • Environment:
      java 1.6.0-33, windows 7
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      When formatting stack traces, the function uses a PrintStream and toString to get the text for the stack trace, this is converted according to the platform line endings, in Windows, the cr-lf line endings cause the patterns to fail.
      This means for example that the unit test for TemplatableOutput fails in Windows.
      I have added a unit test to check if it an Exception is converted correctly, however this test will fail under Windows only.

        Activity

        Hide
        Alexander Lehmann added a comment -

        https://github.com/alexlehm/jbehave-core/commit/3a938a32bffaddf055d418f791d69d06a91dc820

        JBEHAVE-806: Jbehave doesn't reformat stack traces on Windows
        added cr/lf conversion to StackTraceFormatter, added unit test for an Exception

        Show
        Alexander Lehmann added a comment - https://github.com/alexlehm/jbehave-core/commit/3a938a32bffaddf055d418f791d69d06a91dc820 JBEHAVE-806 : Jbehave doesn't reformat stack traces on Windows added cr/lf conversion to StackTraceFormatter, added unit test for an Exception
        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 3.6.9 [ 18650 ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Summary Jbehave doesn't reformat stack traces on Windows Stack traces not properly formatted on Windows
        Mauro Talevi made changes -
        Fix Version/s 3.7 [ 18390 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Alexander Lehmann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: