Browse files

Debugging option for test tasks

  • Loading branch information...
1 parent 90fd304 commit 5db21731e099126c1beb07f1dc8a14470993fa03 @geigerzaehler geigerzaehler committed Oct 18, 2013
Showing with 5 additions and 5 deletions.
  1. +3 −3
  2. +2 −2
@@ -202,9 +202,9 @@ See [`the wiki`]( for API documentation,
-Running `grunt` starts a watch task for development.
-Using `grunt test` all tests are just executed once.
+Running `grunt` starts a watch task for development. Using `grunt test` all
+tests are just executed once. Passing the `--debug` option to the grunt tasks
+makes the share server dump the communication with clients.
All tests are located under the `test` directory. Browser tests are contained in
`test/browser` and node tests are located in `test/server`.
@@ -45,14 +45,14 @@ module.exports = (grunt) ->
grunt.registerTask 'server', 'Start a server to test clients', ->
done = this.async()
- server = require('./test/helpers/server')({log: false})
+ server = require('./test/helpers/server')({log: !!grunt.cli.options.debug})
.on('listening', done)
.on 'error', (err) ->
if (err.code is 'EADDRINUSE')
grunt.fatal('Port 3000 is already in use by another process.')
- grunt.fatal(err);
+ grunt.fatal(err)
# Default Task
grunt.registerTask 'default', ['server', 'karma:dev:start', 'watch']

0 comments on commit 5db2173

Please sign in to comment.