I think mocha has some easy way to set them up in a Makefile.  Saw it in mocha's site.  But you could also append it to mocha command line (look at package.json test script).