Skip to content

Instantly share code, notes, and snippets.

@tolmasky
Created February 3, 2010 02:06
Show Gist options
  • Select an option

  • Save tolmasky/293260 to your computer and use it in GitHub Desktop.

Select an option

Save tolmasky/293260 to your computer and use it in GitHub Desktop.
var testCaseFile = require("file").absolute(args.shift());
if (!testCaseFile)
{
[self report];
return;
}
var matches = testCaseFile.match(/([^\/]+)\.j$/);
system.stderr.write(matches[1]).flush();
var testCaseClass = matches[1];
require(testCaseFile);
var suite = [self getTest:testCaseClass];
[self run:suite];
system.stderr.write("\n").flush();
// run the next test when this is done
[self startWithArguments:args];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment