diff --git a/lib/cli.js b/lib/cli.js index 51fc225b..b5f8155a 100755 --- a/lib/cli.js +++ b/lib/cli.js @@ -346,7 +346,7 @@ internals.options = function () { verbose: false, paths: ['test'], coverage: false, - debug: true, + debug: false, dry: false, environment: 'test', flat: false, diff --git a/test/cli.js b/test/cli.js index 7d5a3f24..fde1ea4d 100755 --- a/test/cli.js +++ b/test/cli.js @@ -203,6 +203,21 @@ describe('CLI', () => { }); }); + it('debug mode is disabled by default', (done) => { + + RunCli(['test/cli_error/failure.js'], (error, result) => { + + if (error) { + done(error); + } + + expect(result.errorOutput).to.equal(''); + expect(result.code).to.equal(1); + expect(result.combinedOutput).to.not.contain('Test script errors:'); + done(); + }); + }); + it('shows the help (-h)', (done) => { RunCli(['-h'], (error, result) => {