Skip to content

Instantly share code, notes, and snippets.

@blackcoat
blackcoat / Cakefile
Last active August 31, 2017 09:22
Sample Mocha test runner in CoffeeScript
# Required to run commands in the shell
# @see http://nodejs.org/api/child_process.html
{spawn} = require 'child_process'
# A basic command runner
run = (cmd, args) ->
console.log cmd, args.join ' '
spawn cmd, args, stdio: 'inherit'
# Set up default arguments for running our Mocha tests.