diff --git a/tools/src/tester/ResultLogger.ts b/tools/src/tester/ResultLogger.ts index 4d9eb723b..50b9c5574 100644 --- a/tools/src/tester/ResultLogger.ts +++ b/tools/src/tester/ResultLogger.ts @@ -90,7 +90,9 @@ export class ConsoleResultLogger implements ResultLogger { #log_evaluation (evaluation: Evaluation, title: string, prefix: number = 0): void { const result = ansi.padding(this.#result(evaluation.result), 0, prefix) - const message = evaluation.message != null ? `${ansi.gray('(' + evaluation.message + ')')}` : '' + var message = evaluation.message + if (message !== undefined && message?.length > 128 && !this._verbose) message = message.split(',')[0] + ', ...' + if (message !== undefined) message = ansi.gray(`${message}`) console.log(`${result} ${title} ${message}`) }