Re: Browser javascript testing

155 views
Skip to first unread message

Rick Walsh

unread,
Apr 23, 2013, 6:53:48 AM4/23/13
to moc...@googlegroups.com
Hi,

How are you using mocha to test your clientside code?



On Wednesday, 13 February 2013 03:56:00 UTC, Jason Chen wrote:
I am using mocha to test some front end javascript and I would like to use zombie to automate this: 

Browser = require('zombie')

browser = new Browser({debug: true, runScripts: true})
  setInterval( ->
    console.log browser.queryAll('li').length
  , 1000)
)

It does not appear zombie is loading the mocha tests as the console.log output is alway 4. The mocha tests should be running and filling in new li's. What am I doing wrong?

Jason Chen

unread,
Apr 24, 2013, 1:12:56 PM4/24/13
to moc...@googlegroups.com
I'm using mocha's browser support feature. I ended up using mocha-phantomjs and that worked.

--
You received this message because you are subscribed to a topic in the Google Groups "Mocha" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mochajs/rVgWl9gseOk/unsubscribe?hl=en-GB.
To unsubscribe from this group and all of its topics, send an email to mochajs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages