Skip to content

Commit 61c01d9

Browse files
author
cloudhead
committed
tell user if no tests were run.
1 parent 50077aa commit 61c01d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/vows/console.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ this.result = function (event) {
4747
var status = (event.errored && 'errored') || (event.broken && 'broken') ||
4848
(event.honored && 'honored') || (event.pending && 'pending');
4949

50+
if (event.total === 0) {
51+
return [$("Could not find any tests to run.").bold.red];
52+
}
53+
5054
event.honored && result.push($(event.honored).bold + " honored");
5155
event.broken && result.push($(event.broken).bold + " broken");
5256
event.errored && result.push($(event.errored).bold + " errored");

0 commit comments

Comments
 (0)