Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add npm test script
  • Loading branch information
rmurphey committed May 3, 2012
1 parent 110472c commit dba1058
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
npm-debug.log
node_modules/
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -26,10 +26,9 @@ get the tests to pass. To do this, you'll need to edit the files in the
the right direction; once you update a test, you can reload the test page in
the browser to see whether it worked.

You can also run (most of) the tests on the command line. To do this, run the
following:
You can also run (most of) the tests on the command line:

./node_modules/mocha/bin/mocha -R spec tests/runner.js
npm test

The command line runner is a work in progress; contributions welcome :)

Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -22,7 +22,8 @@
"requirejs" : "1.0.x"
},
"scripts": {
"start": "node bin/serve"
"start": "node bin/serve",
"test": "./node_modules/mocha/bin/mocha -R spec tests/runner.js"
},
"bin" : "bin/serve",
"bugs" : {
Expand Down

0 comments on commit dba1058

Please sign in to comment.