jruby / jcodings

Java-based codings helper classes for Joni and JRuby
MIT License
20 stars 29 forks source link

show backtraces by default #48

Closed ahorek closed 2 years ago

ahorek commented 2 years ago

I would like to suggest showing backtraces by default because an error report like this isn't very useful:

before

[ERROR] Errors:
[ERROR]   TestUTF8SoftBankToSJISKDDI.test1:15 » ArrayIndexOutOfBounds Index 3 out of bou...

after

[ERROR] org.jcodings.transcode.TestUTF8SoftBankToSJISKDDI.test1  Time elapsed: 0.016 s  <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
        at org.jruby.jcodings@1.0.56-SNAPSHOT/org.jcodings.transcode.Transcoding.transcodeRestartable0(Transcoding.java:172)
        at org.jruby.jcodings@1.0.56-SNAPSHOT/org.jcodings.transcode.Transcoding.transcodeRestartable(Transcoding.java:105)
        at org.jruby.jcodings@1.0.56-SNAPSHOT/org.jcodings.transcode.Transcoding.convert(Transcoding.java:86)
        at org.jruby.jcodings@1.0.56-SNAPSHOT/org.jcodings.transcode.EConv.transSweep(EConv.java:236)
...
headius commented 2 years ago

Wow, I didn't even know this was an option.