From af91177cb8cc9b702abbfe84b7e40170349df66b Mon Sep 17 00:00:00 2001 From: sipayrt Date: Tue, 16 Jan 2024 15:58:35 +0300 Subject: [PATCH] feat: add startTime data for test --- lib/collector/tool/hermione.js | 3 ++- test/lib/collector/tool/hermione.js | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/collector/tool/hermione.js b/lib/collector/tool/hermione.js index 803309e..007e1ba 100644 --- a/lib/collector/tool/hermione.js +++ b/lib/collector/tool/hermione.js @@ -12,7 +12,8 @@ exports.configureTestResult = (result) => { browserId: result.browserId, file: utils.getRelativePath(filePath), duration: result.duration || null, - meta: result.meta + meta: result.meta, + startTime: result.startTime }; const metaUrl = _.get(result, 'meta.url', ''); diff --git a/test/lib/collector/tool/hermione.js b/test/lib/collector/tool/hermione.js index 567a11b..3424776 100644 --- a/test/lib/collector/tool/hermione.js +++ b/test/lib/collector/tool/hermione.js @@ -86,7 +86,8 @@ describe('collector/tool/hermione', () => { file: '/cwd/file/path', meta: {url: 'http://some-url/some-path', foo: 'bar'}, duration: 12345, - parent: mkDataStub_({title: 'some full'}) + parent: mkDataStub_({title: 'some full'}), + startTime: 1000 }); utils.getRelativePath.withArgs('/cwd/file/path').returns('file/path'); @@ -100,7 +101,8 @@ describe('collector/tool/hermione', () => { file: 'file/path', url: '/some-path', meta: {url: 'http://some-url/some-path', foo: 'bar'}, - duration: 12345 + duration: 12345, + startTime: 1000 }); });