Skip to content

Commit

Permalink
Merge pull request #606 from gemini-testing/TESTPLANE-270.fix_error_d…
Browse files Browse the repository at this point in the history
…etails

fix: correctly build link to error details
  • Loading branch information
DudaGod authored Oct 3, 2024
2 parents da3a3bc + be32c7b commit 5e68811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/adapters/test-result/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions lib/adapters/test-result/transformers/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -21,7 +20,7 @@ export class TreeTestResultTransformer {
return {
..._.omit(result, 'imagesInfo'),
attempt: testResult.attempt,
errorDetails: extractErrorDetails(testResult)
errorDetails: testResult.errorDetails
};
}
}

0 comments on commit 5e68811

Please sign in to comment.