Skip to content

Commit

Permalink
Add nodeunit, cake test
Browse files Browse the repository at this point in the history
  • Loading branch information
itspriddle committed Jul 1, 2011
1 parent 66733e6 commit a070d42
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Cakefile
Expand Up @@ -30,3 +30,10 @@ task 'run', 'Run the bot', ->
task 'build_and_run', ->
build()
run()

task 'test', "Run the tests", ->
build ->
require.paths.unshift __dirname + "/lib"
{reporters} = require 'nodeunit'
process.chdir __dirname
reporters.default.run ['test']
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -21,5 +21,7 @@
"request": "= 1.9.8",
"underscore": "= 1.1.6"
},
"devDependencies": {}
"devDependencies": {
"nodeunit": "= 0.5.1"
}
}

0 comments on commit a070d42

Please sign in to comment.