venus.js icon indicating copy to clipboard operation
venus.js copied to clipboard

Venus inconsistently displays errors in Phantom

Open whastings opened this issue 10 years ago • 2 comments

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.

whastings avatar Nov 12 '14 22:11 whastings

#361 fixes this :wink:

bradcypert avatar Sep 24 '15 04:09 bradcypert

@whastings Update to the latest version of Venus. My PR #361 fixed this issue and was merge in last week. :smile:

bradcypert avatar Oct 29 '15 00:10 bradcypert