[
https://issues.apache.org/jira/browse/SUREFIRE-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15431582#comment-15431582
]
Gili edited comment on SUREFIRE-1276 at 8/22/16 8:40 PM:
---------------------------------------------------------
[~tibor17] If understand the code correctly, when the exception message spans
multiple lines, Surefire inserts a leading newline character to make sure that
the text is aligned. If so, this is a good idea, but should be documented as
you mentioned. If you confirm my understanding, I will try producing a PR for
this.
was (Author: cowwoc):
[~tibor17] I understand the code correctly, when the exception message spans
multiple lines, Surefire inserts a leading newline character to make sure that
the text is aligned. If so, this is a good idea, but should be documented as
you mentioned. If you confirm my understanding, I will try producing a PR for
this.
> trimStackTrace trims newlines in exception message
> --------------------------------------------------
>
> Key: SUREFIRE-1276
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1276
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Reporter: Gili
>
> I am throwing an exception whose message contains newlines for readability.
> When {{<trimStackTrace>}} is true (the default value) Surefire is removing
> all newlines.
> Expected behavior: Consider moving this functionality out of
> {{<trimStackTrace>}} into its own parameter. Regardless of which parameter
> enables this behavior, please document it at
> http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html ...
> right now there is no mention of this behavior.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)