I’m starting a nodejs project and would like to do BDD with Mocha and Zombiejs. Unfortunately I’m new to just about every buzzword in that sentence. I can get Mocha and Zombiejs running tests fine, but I can’t seem to integrate the two – is it possible to use Mocha to run Zombiejs tests, and if so, how would that look?
Just looking for “hello world” to get me started, but a tutorial/example would be even better.
Thanks!
Assuming you already have installed
mocha,zombieandexpect.jsaccording to instructions, this should work for you:Then you should be able to run the
mochacommand from your root application folder:Note: If your tests keep failing due to timeouts, it helps to increase
mocha‘s timeout setting a bit by using the-targument. Check out mocha’s documentation for complete details.