Open kriswest opened 1 year ago
@robmoffat @gaganahluwalia To implement this, you can pass a callback to mocha.run(cb)
in the test framework here. It'll be called when done, with a status code indicating whether any tests failed. See https://mochajs.org/api/mocha#run for details.
Presumably you'd just add the message elements to the HTML with CSS hiding them then show one in the above callback (depending on result) + hide again on a new run.
This was in another issue but hasn't been dealt with:
Basically, because:
we've ended up just putting in a fixed length wait for the tests to run. That's brittle and wasting time (as it needs to wait just longer than the longest possible run).
Please can we have either the number of tests or a message posted in the window on completion.