I am trying to rerun mocha tests using supervisor. I have tried:
supervisor node_modules\.bin\mocha
It goes into loop with error:
basedir=`dirname "$0"`
Suggestions?
I am trying to rerun mocha tests using supervisor. I have tried:
supervisor node_modules\.bin\mocha
It goes into loop with error:
basedir=`dirname "$0"`
Suggestions?
Copyright © 2021 Jogjafile Inc.
I think all you want to do is
mocha -w
:It works nicely with the dot-matrix reporter (default) and
-G
to give you growl notifications when your tests fail.Edit:
I've found the Windows-related issues you mention: "No such module" error when trying to get Mocha to watch my project
I can't help with that, either.
But back to the
supervisor
question: When I install mocha, the "bin" script is in node_modules/mocha/bin, and I can get tests to run repeatedly with the followingsupervisor does print some annoying
DEBUG
lines between each test run, but those can be silenced with--quiet
. Because mocha quits after each run, you have a busy loop of constant tests, though.