outcome static method
The short outcome shown after a finished step, e.g. exited with code 1 or skipped, an earlier step has failed
Implementation
static String outcome(StepState step) {
switch (step.status) {
case StepStatus.failed:
return step.error?.message ?? "failed";
case StepStatus.skipped:
return "skipped, ${step.skipReason ?? "-"}";
case StepStatus.succeeded:
return step.warningCount == 0 ? "" : "${step.warningCount} warning${step.warningCount == 1 ? "" : "s"}";
case StepStatus.pending:
case StepStatus.running:
return "";
}
}