browser-mocha
run browser mocha test by web driver
Installation
npm install browser-mocha
Try
try it by node demo.js
, remember to open phantomjs web driver (phantomjs -w
) before try
Usage
basic usage
var browserMocha =
data is some of mocha runner value
logs
array of print logs, can usebrowserMocha.print
print to stdouttotal
count of test casesfailures
count of failure test cases
Advanced
Test page will default add es5-shim, use {shim: false}
to close it
Get script by browserMocha.getScript
for custom debug
Options
Use more options like below
License
ISC