Update gruntfile with configurable report

This commit is contained in:
James Allen 2014-04-29 12:31:30 +01:00
parent 2e8582874f
commit 9be5265f32

View file

@ -53,17 +53,17 @@ module.exports = (grunt) ->
mochaTest:
unit:
options:
reporter: "spec"
reporter: grunt.option('reporter') or 'spec'
src: ["test/unit/js/**/*.js"]
acceptance:
options:
reporter: "spec"
reporter: grunt.option('reporter') or 'spec'
timeout: 40000
grep: grunt.option("grep")
src: ["test/acceptance/js/**/*.js"]
smoke:
options:
reported: "spec"
reporter: grunt.option('reporter') or 'spec'
timeout: 10000
src: ["test/smoke/js/**/*.js"]
@ -75,7 +75,7 @@ module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-bunyan'
grunt.loadNpmTasks 'grunt-forever'
grunt.registerTask 'compile:app', ['clean:app', 'coffee:app', 'coffee:app_src', 'coffee:smoke_tests']
grunt.registerTask 'compile:app', ['clean:app', 'coffee:app', 'coffee:app_src']
grunt.registerTask 'run', ['compile:app', 'bunyan', 'execute']
grunt.registerTask 'compile:unit_tests', ['clean:unit_tests', 'coffee:unit_tests']