Current issue (I suppose that it will be fixed): when test fails (exception occurs), stacktrace is not informative at all:
java.lang.RuntimeException: ReferenceError: teavmException is not defined
at otj_TestJsEntryPoint_main (http://localhost:45351/tests/js/org/teavm/classlib/java/lang/LongTest/classTest.js:2649:20)
at http://localhost:45351/tests/js/org/teavm/classlib/java/lang/LongTest/classTest.js:222:11
at $rt_startThread (http://localhost:45351/tests/js/org/teavm/classlib/java/lang/LongTest/classTest.js:574:18)
at http://localhost:45351/tests/js/org/teavm/classlib/java/lang/LongTest/classTest.js:221:5
at launchTest (http://localhost:45351/frame.js:64:5)
at event.source.postMessage.wrapResponse.status (http://localhost:45351/frame.js:25:17)
at appendFiles (http://localhost:45351/frame.js:48:9)
at script.onload (http://localhost:45351/frame.js:53:13)
Merged all fixes together with suggested changes.
Current issue (I suppose that it will be fixed): when test fails (exception occurs), stacktrace is not informative at all: