figwheel-main
figwheel-main copied to clipboard
headless testing fail - no tests results outtputed
Hey @bhauman - first of thanks for all the effort put into figwheel!
I came across an issue related to command line testing with headless env (Chrome). If a test fails, it throws an exception and then outputs a long obscure stacktrace but doesn't actually report the test results.
I have a workaround in place with custom test runner and fighweel.main/-main
wrapper function but that also requires updating figwheel's default-main
to return final-result
rather than print it (so we had to fork it :/)
This is interesting and deserves some attention. The main issue here is to report the results (if possible, i.e. an unrecoverable error didn't occur) and still produce a failing exit status as that is a primary feature of headless testing.
@bhauman it's been a while since i looked at this but from what I remember, a related issue was that stdout seems to get discarded whenever there was an exception - that's probably a more fundamental issue