Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Heads up: needing to explicitly set surefire's trimStackTrace with Tycho 1.2

Oops, I posted this prematurely — tycho-surefire doesn't propagate the trimStackTrace.

With Tycho 1.2, I see something like:

testGetAffectedFiles_null(  Time elapsed: 0.002 sec  <<< ERROR!

With Tycho 1.1, this same error is:

testGetAffectedFiles_null(  Time elapsed: 0.001 sec  <<< ERROR!
java.lang.NullPointerException: null

So the NPE is reported at the wrong spot!

I'm not sure if this is caused by a change of value in trimStackTrace or whether surefire 2.19.1's trimming is more aggressive than 2.17.


On 13-Jun-2018, at 11:21 PM, Brian de Alwis <briandealwis@xxxxxxxxx> wrote:

Since updating to Tycho 1.2, we noticed that our error stacktraces from failing tests were abbreviated. We're now explicitly setting surefire's `trimStackTrace=false`.  I spent an hour or two trying to track down a what seemed to be an odd NPE as the actual site was trimmed.

What's odd is that although Tycho 1.2 updated surefire from 2.17 to 2.19.1, the trimStackTrace setting, and its default to true, dates back to surefire 2.2.  I'm not sure what resulted in the change!


Back to the top