Skip to content

Commit

Permalink
Add debug options to phantom tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Scholtes committed Oct 12, 2013
1 parent 227c45e commit 481a9e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -204,8 +204,9 @@ Testing

Server-side and client unit tests are run with `grunt test`. For in-browser
tests fire up `grunt test:server` and go to `http://localhost:3000`. You can
also run the browser tests in [PhantomJS](http://phantomjs.org/) by using `grunt
test:phantom`. You can run single tests using
also run the browser tests in [PhantomJS](http://phantomjs.org/) using `grunt
test:phantom`. Passing the debug option (`-d`) to the phantom tests shows
the communication between client and server. You can run single tests using
[mocha](http://visionmedia.github.io/mocha/).

All tests are located under the `test` directory. Browser tests are contained in
Expand Down
2 changes: 1 addition & 1 deletion tasks/test_phantom.coffee
Expand Up @@ -4,7 +4,7 @@ module.exports = (grunt)->

grunt.registerTask 'test:phantom', 'Run browser tests in phantom', ->

server = require('../test/helpers/server')(log: false)
server = require('../test/helpers/server')(log: !!grunt.cli.options.debug)
.disable('log')
.listen(3456)

Expand Down

0 comments on commit 481a9e2

Please sign in to comment.