0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Merge pull request #5886 from javorszky/iss_5885

Make grunt test fail if no filename provided
This commit is contained in:
Hannah Wolfe 2015-09-29 23:05:37 +02:00
commit b0f6a15433

View file

@ -586,7 +586,7 @@ var _ = require('lodash'),
grunt.registerTask('test', function (test) {
if (!test) {
grunt.log.write('no test provided');
grunt.fail.fatal('No test provided. `grunt test` expects a filename. e.g.: `grunt test:unit/apps_spec.js`. Did you mean `npm test` or `grunt validate`?');
}
grunt.task.run('test-setup', 'shell:test:' + test);