From time to time, a TestSwarm run is finished and submitted early due to an error (presumably through from window.onerror), but no error message is appended to the page.
Given status=finished and the low run time, this was not a timeout (which have their own exit status code, labelled "Timed out"). Rather, this was a saverun submission coming from within the test iframe (via inject.js). The only way there can be an error without an error count (e.g. not "5 assertions" but "errors=0") is if it was a global error from window.onerror.
However, inject.js only calls submit() from window.onerror if it also appended the error message to the page - which we don't find in the uploaded HTML.
From time to time, a TestSwarm run is finished and submitted early due to an error (presumably through from
window.onerror
), but no error message is appended to the page.For example:
Given status=finished and the low run time, this was not a timeout (which have their own exit status code, labelled "Timed out"). Rather, this was a saverun submission coming from within the test iframe (via inject.js). The only way there can be an error without an error count (e.g. not "5 assertions" but "errors=0") is if it was a global error from
window.onerror
.However,
inject.js
only callssubmit()
fromwindow.onerror
if it also appended the error message to the page - which we don't find in the uploaded HTML.https://github.com/jquery/testswarm/blob/d8114f8fbe0fddd0d92fd4e32231565af9638914/js/inject.js#L177-L196