You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2016/05/23 13:20:12 UTC

[jira] [Commented] (SUREFIRE-1251) How to remove stackstrace information from surefire report & include sys output?

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

Tibor Digana commented on SUREFIRE-1251:
----------------------------------------

We suppose an error as exception thrown out of the test method, including AssertionError which is an outcome from assertion statements. Other errors, e.g. internal application errors, are not under control of the plugin.
Find appropriate configuration parameters in documentation
http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html
and play with printSummary, trimStackTrace.
I think at least one line of the stack trace error will always be in the report.
And why not to have it in report? It's the purpose of surefire/failsafe plugins.
If you want to violate the real status then fix the application which tests fail - no reason to hide the error.

> How to remove stackstrace information from surefire report & include sys output?
> --------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1251
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1251
>             Project: Maven Surefire
>          Issue Type: Question
>          Components: Maven Surefire Plugin, Maven Surefire Report Plugin
>    Affects Versions: 2.5
>            Reporter: Akshay
>            Priority: Blocker
>              Labels: maven
>
> I'm executing test suite of junit tests using maven & I'm using surefire plug-in [2.5] for reporting , Now i have to customize reports ...So how to remove stacks trace information from surefire report & rather than this i have to include / print - system output in the generated report which are written in the junit scripts ??
> How to achieve this ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)