You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Eric Barboni (JIRA)" <ji...@apache.org> on 2016/09/08 09:26:21 UTC

[jira] [Updated] (SUREFIRE-1277) Exceptions stacktrace in test are limited to the test class in 2.19

     [ https://issues.apache.org/jira/browse/SUREFIRE-1277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Barboni updated SUREFIRE-1277:
-----------------------------------
    Attachment: surefiretest.zip

Minimalistic project where you have to change the version of surefire plugin in the pom.

As a result for Surefire 2.19.2-SNAPSHOT
{code}
testException(com.dummy.surefiretest.DummyTest)  Time elapsed: 0 s  <<< ERROR!
java.lang.RuntimeException: Failure
	at com.dummy.surefiretest.DummyTest.testException(DummyTest.java:22)
{code}

As a result Surefire 2.18.1
{code}
testException(com.dummy.surefiretest.DummyTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.RuntimeException: Failure
	at com.dummy.surefiretest.Dummy.exception(Dummy.java:15)
	at com.dummy.surefiretest.DummyTest.testException(DummyTest.java:22)
{code}

surefire 2.19 make it harder to find root cause

> Exceptions stacktrace in test are limited to the test class in 2.19 
> --------------------------------------------------------------------
>
>                 Key: SUREFIRE-1277
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1277
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.19, 2.19.1
>         Environment: Windows 10, java 8
>            Reporter: Eric Barboni
>         Attachments: surefiretest.zip
>
>
> Hi,
>  Previous to 2.19, if an execption was raised in tested method the stacktrace contains trace from the test and tested method. 
>  Now the stacktrace contains only trace from test method, making it complicated to find the root cause.
>  



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