Skip to content

Commit

Permalink
feat: add startTime data for test
Browse files Browse the repository at this point in the history
  • Loading branch information
sipayRT committed Jan 16, 2024
1 parent 3013f6a commit e75d124
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 e75d124

Please sign in to comment.