Permalink
Browse files

updated nodeunit and remove test script

  • Loading branch information...
caolan committed Sep 29, 2010
1 parent db163f7 commit 3311c3f4af210d3d4541f3b5c31c72086ba9c7fc
Showing with 2 additions and 25 deletions.
  1. +1 −1 Makefile
  2. +1 −1 deps/nodeunit
  3. +0 −23 scripts/test.js
View
@@ -3,6 +3,6 @@ all:
git submodule update
test:
- ./scripts/test.js
+ node ./deps/nodeunit/lib/cli.js test
.PHONY: all test
View
@@ -1,23 +0,0 @@
-#!/usr/bin/env node
-
-require.paths.unshift(__dirname + '/..');
-require.paths.unshift(__dirname + '/../deps');
-require.paths.unshift(__dirname + '/../deps/underscore');
-require.paths.unshift(__dirname + '/../lib');
-
-try {
- var testrunner = require('nodeunit').testrunner;
-}
-catch(e) {
- var sys = require('sys');
- sys.puts("Cannot find nodeunit module.");
- sys.puts("You can download submodules for this project by doing:");
- sys.puts("");
- sys.puts(" git submodule init");
- sys.puts(" git submodule update");
- sys.puts("");
- process.exit();
-}
-
-process.chdir(__dirname + '/..');
-testrunner.run(['test']);

0 comments on commit 3311c3f

Please sign in to comment.