From f72e654ad547e410f499fdaf42558cc279f85743 Mon Sep 17 00:00:00 2001 From: vdemedes Date: Wed, 23 Sep 2015 21:22:54 +0300 Subject: [PATCH] display error message when there are no test files --- cli.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli.js b/cli.js index 94f690a..29199ca 100755 --- a/cli.js +++ b/cli.js @@ -106,6 +106,11 @@ function init(files) { return path.join(process.cwd(), file); }) .then(function (files) { + if (files.length === 0) { + log.error('Couldn\'t find any files to test\n'); + process.exit(1); + } + var tests = files.map(run); return Promise.all(tests);