Permalink
Browse files

Use `npm test` for running tests

  • Loading branch information...
1 parent db93757 commit 9b837768c7421d0af1ec63954a2ede37194269ed @mmalecki mmalecki committed Dec 19, 2011
Showing with 2 additions and 62 deletions.
  1. +0 −3 Makefile
  2. +2 −1 package.json
  3. +0 −58 test/index.js
View
@@ -41,9 +41,6 @@ clean:
@@rm -rf $(BASE)/build/
@@rm -rf $(BASE)/vendor/libgit2/build/
-test:
- @@$(NODE_JS) $(BASE)/test/index.js test
-
lint:
@@$(NODE_JS) $(BASE)/util/hint-check.js
View
@@ -22,6 +22,7 @@
},
"scripts": {
"preinstall": "./configure",
- "install": "make"
+ "install": "make",
+ "test": "cd test && nodeunit *.js"
}
}
View
@@ -1,58 +0,0 @@
-
-try {
- var reporter = require('nodeunit').reporters['default'];
-}
-catch( e ) {
- var sys = require( 'util' );
- sys.puts( 'Cannot find nodeunit module.' );
- sys.puts( 'You can install it by running:');
- sys.puts( '' );
- sys.puts( ' npm install');
- sys.puts( '' );
- process.exit();
-}
-
-try {
- var rimraf = require('rimraf');
-}
-catch(e) {
- var sys = require( 'util' );
- sys.puts( 'Cannot find rimraf module.' );
- sys.puts( 'You can install it by running:');
- sys.puts( '' );
- sys.puts( ' npm install');
- sys.puts( '' );
- process.exit();
-}
-
-process.chdir( './test' );
-reporter.run(
- [
- // Raw API
- 'raw-blob.js'
- , 'raw-commit.js'
- , 'raw-error.js'
- , 'raw-object.js'
- , 'raw-oid.js'
- , 'raw-reference.js'
- , 'raw-repo.js'
- , 'raw-revwalk.js'
- // Sig
- // Tree
- // Tree Entry
- // Util
-
- // Convenience API
- , 'convenience-repo.js'
- // Blob
- // Commit
- // Error
- // Obj
- // Oid
- // Ref
- // RevWalk
- // Sig
- // Tree
- // TreeEntry
- ]
-);

0 comments on commit 9b83776

Please sign in to comment.