venus.js
venus.js copied to clipboard
Venus inconsistently displays errors in Phantom
I have noticed that sometimes I'll run a spec with Venus and Phantom and it'll report 0 tests executed and nothing else. If I run the test in the browser, I can usually see a JS error is the cause, but sometimes the error occurs in Phantom but not the browser.
Sometimes Venus and Phantom will show the actual error, but not always. For example, I can put throw new Error('some text');
in my describe
, and sometimes it'll be in the output, but most of the time it won't. Venus won't report the error about 5 out of 6 times.
Is there anything we can do to get the error reporting working 100% of the time?
BTW, I'm using Venus 2.3.3 and Phantom 1.9.1.
#361 fixes this :wink:
@whastings Update to the latest version of Venus. My PR #361 fixed this issue and was merge in last week. :smile: