figwheel-main icon indicating copy to clipboard operation
figwheel-main copied to clipboard

headless testing fail - no tests results outtputed

Open k7d opened this issue 6 years ago • 2 comments

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 :/)

k7d avatar Dec 30 '18 14:12 k7d

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 avatar Jan 29 '19 16:01 bhauman

@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

k7d avatar Jan 29 '19 17:01 k7d