diff options
author | Zac Echola <zac.echola@so.mnscu.edu> | 2014-11-18 00:18:18 +0300 |
---|---|---|
committer | Zac Echola <zac.echola@so.mnscu.edu> | 2014-11-18 00:18:18 +0300 |
commit | f3329e6eba193f8ca8445e8ae4032d95f53af0c0 (patch) | |
tree | 045e836f148dd136099a7ce2ef844ad6981da50b /test | |
parent | 3322682746008d93ce2d77f32e3075d4cf94bdca (diff) |
adding showallerrors option
Diffstat (limited to 'test')
-rw-r--r-- | test/bootlint_test.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/bootlint_test.js b/test/bootlint_test.js index 9e0f07b..f907305 100644 --- a/test/bootlint_test.js +++ b/test/bootlint_test.js @@ -96,6 +96,28 @@ exports.bootlint = { test.done(); }); }, + showallerrors: function(test) { + test.expect(1); + grunt.util.spawn({ + grunt: true, + args: ['bootlint:showallerrors', '--no-color'], + }, function(err, result) { + test.ok(result.stdout.indexOf("8 lint error(s) found across 3 file(s). Use --force to continue.") >= 0, + 'Should show all errors before hard fail.'); + test.done(); + }); + }, + showallerrorswithstop: function(test) { + test.expect(1); + grunt.util.spawn({ + grunt: true, + args: ['bootlint:showallerrorswithstop', '--no-color'], + }, function(err, result) { + test.ok(result.stdout.indexOf("8 lint error(s) found across 3 file(s). Use --force to continue.") >= 0, + 'Should show all errors before hard fail even if stopon* is set.'); + test.done(); + }); + }, pass: function(test) { test.expect(1); grunt.util.spawn({ |