forked from UnityTech/node-dynamodb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cakefile
33 lines (30 loc) · 848 Bytes
/
Cakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
magneto = require 'magneto'
{spawn} = require 'child_process'
binPath = './node_modules/.bin'
process.env.PATH = "#{binPath}:#{process.env.PATH}"
task 'test', 'Run test suite', ->
test = spawn "#{binPath}/mocha", [
'--compilers', 'coffeem:coffee-script-mapped'
'--reporter', 'spec'
'--colors'
'--bail'
'test/conversion.coffee'
'test/table.coffee'
'test/item.coffee'
'test/batch.coffee'
]
test.stdout.pipe process.stdout
test.stderr.pipe process.stderr
task 'test-xunit', 'Run test suite', ->
test = spawn "#{binPath}/mocha", [
'--compilers', 'coffeem:coffee-script-mapped'
'--reporter', 'xunit'
'--colors'
'--bail'
'test/conversion.coffee'
'test/table.coffee'
'test/item.coffee'
'test/batch.coffee'
]
test.stdout.pipe process.stdout
test.stderr.pipe process.stderr