From 61a0e4040800c4ed74c2a33f80eb9eb3ec220e0a Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Mon, 11 Mar 2019 12:01:54 +0100 Subject: [PATCH] fix(cli): log test duration in CLI output Closes #600 --- garden-service/src/tasks/test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/garden-service/src/tasks/test.ts b/garden-service/src/tasks/test.ts index eb17e94a84..fdcdc2d04b 100644 --- a/garden-service/src/tasks/test.ts +++ b/garden-service/src/tasks/test.ts @@ -136,9 +136,9 @@ export class TestTask extends BaseTask { throw err } if (result.success) { - log.setSuccess({ msg: chalk.green(`Success`), append: true }) + log.setSuccess({ msg: chalk.green(`Success (took ${log.getDuration(1)} sec)`), append: true }) } else { - log.setError({ msg: chalk.red(`Failed!`), append: true }) + log.setError({ msg: chalk.red(`Failed! (took ${log.getDuration(1)} sec)`), append: true }) throw new TestError(result.output) }