Skip to content

Commit

Permalink
Merge pull request #25 from gemini-testing/sp.moreInfo
Browse files Browse the repository at this point in the history
feat: add startTime data for test
  • Loading branch information
sipayRT authored Jan 16, 2024
2 parents 87df941 + af91177 commit 67ad11c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/collector/tool/hermione.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', '');
Expand Down
6 changes: 4 additions & 2 deletions test/lib/collector/tool/hermione.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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
});
});

Expand Down

0 comments on commit 67ad11c

Please sign in to comment.