Details
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
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 ] |
https://github.com/alexlehm/jbehave-core/commit/3a938a32bffaddf055d418f791d69d06a91dc820
JBEHAVE-806: Jbehave doesn't reformat stack traces on Windowsadded cr/lf conversion to StackTraceFormatter, added unit test for an Exception