Permalink
Browse files

use 'buster test' to run tests

  • Loading branch information...
1 parent 677d04a commit b5ff447fe5594b939ab764e517ed428ec6d075b8 @magnars committed Aug 16, 2011
Showing with 17 additions and 13 deletions.
  1. +10 −1 README.md
  2. +1 −1 autotest.watchr
  3. +6 −0 buster.js
  4. +0 −3 package.json
  5. +0 −8 run_tests
View
11 README.md
@@ -95,14 +95,23 @@ Setting up development environment
Check out the source code from your fork:
git clone <url to your fork>
+ cd autolint
Fetch the dependencies with npm:
npm install
+
+Install buster if you haven't already:
+
+ npm install buster -g
+Then link buster in:
+
+ npm link buster
+
Run the tests to make sure everything works:
- ./run_tests
+ buster test
Install [watchr](https://github.com/mynyml/watchr) to run the tests automatically:
View
2 autotest.watchr
@@ -7,7 +7,7 @@ end
def run_all_tests
system('clear')
- result = run "./run_tests"
+ result = run "buster test"
puts result
end
View
6 buster.js
@@ -0,0 +1,6 @@
+var config = module.exports;
+
+config["Node tests"] = {
+ environment: "node",
+ tests: ["test/*.js"]
+};
View
3 package.json
@@ -24,9 +24,6 @@
"underscore": "~1.1",
"buster-promise": "~0.3"
},
- "devDependencies": {
- "buster": "~0.2"
- },
"keywords": [
"JavaScript",
"lint",
View
8 run_tests
@@ -1,8 +0,0 @@
-#!/usr/bin/env node
-
-var buster = require("buster");
-var glob = require("glob");
-
-glob.glob("test/**/*-test.js", function (err, files) {
- files.forEach(function (f) { require("./" + f); });
-});

0 comments on commit b5ff447

Please sign in to comment.