Skip to content

Commit

Permalink
fix(cli): log test duration in CLI output
Browse files Browse the repository at this point in the history
Closes #600
  • Loading branch information
edvald committed Mar 11, 2019
1 parent fe7b28c commit 61a0e40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions garden-service/src/tasks/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 61a0e40

Please sign in to comment.