Skip to content

Commit

Permalink
Merge branch 'main' into env-automation-provision
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar committed May 23, 2024
2 parents 156950c + 2f577fd commit 4d4ed80
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions cli/formatters/test_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,20 @@ func (f testRun) json(output TestRunOutput) string {

func (f testRun) pretty(output TestRunOutput) string {
if output.IsFailed {
lastError := ""
if errState := output.Run.LastErrorState; errState != nil {
lastError = *errState
}

testInfoMessage := f.formatMessage("%s %s (%s)",
FAILED_TEST_ICON,
*output.Test.Name,
output.RunWebURL,
)

return f.getColoredText(false, fmt.Sprintf("%s\n%s",
f.formatMessage("%s %s (%s)",
FAILED_TEST_ICON,
*output.Test.Name,
output.RunWebURL,
),
f.formatMessage("\tReason: %s\n",
*output.Run.LastErrorState,
),
testInfoMessage,
f.formatMessage("\tReason: %s\n", lastError),
))
}

Expand Down

0 comments on commit 4d4ed80

Please sign in to comment.