diff --git a/lib/adapters/test-result/reporter.ts b/lib/adapters/test-result/reporter.ts index 63bec7cbd..5b59e0b09 100644 --- a/lib/adapters/test-result/reporter.ts +++ b/lib/adapters/test-result/reporter.ts @@ -15,7 +15,7 @@ export class ReporterTestAdapter implements ReporterTestResult { constructor(testResult: ReporterTestResult) { this._testResult = testResult; - this._errorDetails = null; + this._errorDetails = this._testResult.errorDetails || null; } get attempt(): number { diff --git a/lib/adapters/test-result/transformers/tree.ts b/lib/adapters/test-result/transformers/tree.ts index e54f001d2..abb0d980c 100644 --- a/lib/adapters/test-result/transformers/tree.ts +++ b/lib/adapters/test-result/transformers/tree.ts @@ -2,7 +2,6 @@ import {ReporterTestResult} from '../index'; import _ from 'lodash'; import {BaseTreeTestResult} from '../../../tests-tree-builder/base'; import {DbTestResultTransformer} from './db'; -import {extractErrorDetails} from '../utils'; interface Options { baseHost?: string; @@ -21,7 +20,7 @@ export class TreeTestResultTransformer { return { ..._.omit(result, 'imagesInfo'), attempt: testResult.attempt, - errorDetails: extractErrorDetails(testResult) + errorDetails: testResult.errorDetails }; } }