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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think all you want to do is
mocha -w:It works nicely with the dot-matrix reporter (default) and
-Gto 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
supervisorquestion: 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
DEBUGlines 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.