Bring back `grunt test --debug`
Ben Alpert committed
Mar 6, 2014 at 22:11 UTC
9766ed579746e6d3886ad6fd3477f18fcb211048
2 files changed
+9
-1
Gruntfile.js
+7
-1
@@ -179,7 +179,13 @@ module.exports = function(grunt) {
179
'test:webdriver:phantomjs',
180
'coverage:parse'
181
]);
182
- grunt.registerTask('test', ['build:test', 'build:basic', 'test:webdriver:phantomjs']);
182
+ grunt.registerTask('test', function() {
183
+ if (grunt.option('debug')) {
184
+ grunt.task.run('build:test', 'build:basic', 'connect:server:keepalive');
185
+ } else {
186
+ grunt.task.run('build:test', 'build:basic', 'test:webdriver:phantomjs');
187
+ }
188
+ });
189
grunt.registerTask('perf', ['build:perf', 'perf:webdriver:phantomjs']);
190
grunt.registerTask('npm:test', ['build', 'npm:pack']);
191
README.md
+2
@@ -87,6 +87,8 @@ We use grunt to automate many tasks. Run `grunt -h` to see a mostly complete lis
87
```sh
88
# Build and run tests with PhantomJS
89
grunt test
90
+# Build and run tests in your browser
91
+grunt test --debug
92
# Lint the code with JSHint
93
grunt lint
94
# Wipe out build directory