Skip to content

Commit

Permalink
Merge pull request #615 from garden-io/log-test-time
Browse files Browse the repository at this point in the history
fix(cli): log test duration in CLI output
  • Loading branch information
thsig authored Mar 11, 2019
2 parents fe7b28c + 61a0e40 commit 1d0d739
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 1d0d739

Please sign in to comment.