Using mocha-phantomjs-core with slimerjs I manage to run my tests successfully from CMD:
slimerjs mocha-phantomjs-core.js tests.html tap
Slimerjs window opens, I see the a browser window and all seems good, but the CMD doesn't finish (seems to wait for something). nothing is happening until I close the slimerjs window. I want to output the test result (using TAP reporter) as a file.
is that possible?
https://github.com/nathanboktae/mocha-phantomjs-core/issues/25
system.stderr.writeLinedoesn't work on CMD or GIT bash... I've changedmocha-phantomjs-core.jsfailfunction stderr to do stdout instead. now I get the error:So I had to add
window.initMochaPhantomJS()before the setup function.. how silly! all this because I couldn't see any error due to thestderrissue not printed