Skip to content

Commit

Permalink
tests work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
russellmcc committed Jan 31, 2013
1 parent 56f91e7 commit bb02f2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ fs = require 'fs'
child = require 'child_process'

task 'test', 'run tests (requires development install)', (options) ->
test = child.spawn 'expresso', ['-I', './lib', 'test']
process.env['NODE_PATH'] = './lib/:$NODE_PATH'
test = child.spawn 'expresso', ['test']
test.stdout.pipe process.stdout
test.stderr.pipe process.stderr

task 'coverage', 'run tests with coverage check (requires development install)', (options) ->
compile = child.exec 'coffee -c lib', ->
test = child.spawn 'expresso', ['-I', './lib', '--cov', 'test']
process.env['NODE_PATH'] = './lib/:$NODE_PATH'
test = child.spawn 'expresso', ['--cov', 'test']
test.stdout.pipe process.stdout
test.stderr.pipe process.stderr
test.on "exit", () ->
Expand Down

0 comments on commit bb02f2d

Please sign in to comment.