vendredi 19 décembre 2014

How is mocha configured to run tests in a browser?

I'm confused about how Mocha should be setup to run tests in the browser. I've setup some command line tests which run fine with 'mocha' in the terminal. I've also setup a test.html page that is supposed to load 'mocha.css' and 'mocha.js' (http://ift.tt/1yYhKLC).


Specifically what is not clear to me is how to configure mocha to open a specific browser, run the tests, then close and report the results.


It seems mocha has to be running as a server for the duration of the tests in order for mocha.js and mocha.css to load.


Is there another app that must act as an intermediary?


Aucun commentaire:

Enregistrer un commentaire