I was once lost, but now I'm found.
console.logdebugging really hard
A simple example:
qqunit = require 'qqunit'tests = globsync"/test/**/*_test.coffee"qqunitRunnerrun tests
you@host $: npm install qqunityou@host $: qqunit test_a.coffee test_b.coffee
glob = require 'glob'path = require 'path'qqunit = require 'qqunit'# Load jquery into windowjqueryPath = pathjoin__dirname'lib''jquery.js'qqunitEnvironmentjsdomjQueryify windowjQueryPathglobal.jQuery = jQuery# Load test helperHelper = require './batman/test_helper'globalk= v for own kv of Helperglobal.MyCoolCode = require '../src/my_cool_code'tests = globsync"/**/*_test.coffee"consolelog "Running test suite. files required."qqunitRunnerrun testsprocessexit statsfailed
qqunit came from me being really, really sad. node-qunit put me in a dark place, but out I have come with less than 100 lines of CoffeeScript which accomplish the same thing. qqunit is stupid simple: run QUnit inside jsdom and add some log statements to show you how it goes in the console.
qqunit is copyright 2012 by Shopify, released under the MIT License (see LICENSE for details).