UNPKG

985 BPlain TextView Raw
1#+--------------------------------------------------------------------+
2#| Cakefile
3#+--------------------------------------------------------------------+
4#| Copyright DarkOverlordOfData (c) 2013
5#+--------------------------------------------------------------------+
6#|
7#| This file is a part of Huginn
8#|
9#| Hugin is free software; you can copy, modify, and distribute
10#| it under the terms of the GNU General Public License Version 3
11#|
12#+--------------------------------------------------------------------+
13#
14# Cakefile
15#
16
17{exec} = require "child_process"
18
19
20# --------------------------------------------------------------------
21
22#
23# Run all tests
24#
25#
26task "test", "run tests", ->
27 REPORTER = "nyan"
28 exec "NODE_ENV=test
29 ./node_modules/.bin/mocha
30 --compilers coffee:coffee-script
31 --reporter #{REPORTER}
32 --require coffee-script
33 --require test/test_helper.coffee
34 ", (err, output) ->
35 console.log output
36 console.log err.message if err?
37
38