[ 
https://issues.apache.org/jira/browse/SUREFIRE-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17714051#comment-17714051
 ] 

Jesse Glick commented on SUREFIRE-1432:
---------------------------------------

[~ste...@apache.org] how would defaulting {{trimStackTrace}} to {{false}} 
_remove_ the ability to the get detailed results from test failures? In certain 
cases (depending on the sort of application) it _restores_ that ability. 
Setting it to {{true}} is fine if you know from experience that in your 
application domain, test framework, etc. the trimmed lines will in fact be 
irrelevant, and you want to make the root cause easier to spot instantly 
without distractions.

> trimStackTrace = false by default
> ---------------------------------
>
>                 Key: SUREFIRE-1432
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1432
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin, Maven Surefire Plugin
>            Reporter: Tibor Digana
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 3.0.0-M6
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> *New description:*
> Currently, the default value of the config parameter _trimStackTrace_ is set 
> to _true_. This fix changes the default value.
> *Old 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to