Skip to content

Commit 67ad11c

Browse files
authored
Merge pull request #25 from gemini-testing/sp.moreInfo
feat: add startTime data for test
2 parents 87df941 + af91177 commit 67ad11c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎lib/collector/tool/hermione.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ exports.configureTestResult = (result) => {
1212
browserId: result.browserId,
1313
file: utils.getRelativePath(filePath),
1414
duration: result.duration || null,
15-
meta: result.meta
15+
meta: result.meta,
16+
startTime: result.startTime
1617
};
1718

1819
const metaUrl = _.get(result, 'meta.url', '');

‎test/lib/collector/tool/hermione.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ describe('collector/tool/hermione', () => {
8686
file: '/cwd/file/path',
8787
meta: {url: 'http://some-url/some-path', foo: 'bar'},
8888
duration: 12345,
89-
parent: mkDataStub_({title: 'some full'})
89+
parent: mkDataStub_({title: 'some full'}),
90+
startTime: 1000
9091
});
9192

9293
utils.getRelativePath.withArgs('/cwd/file/path').returns('file/path');
@@ -100,7 +101,8 @@ describe('collector/tool/hermione', () => {
100101
file: 'file/path',
101102
url: '/some-path',
102103
meta: {url: 'http://some-url/some-path', foo: 'bar'},
103-
duration: 12345
104+
duration: 12345,
105+
startTime: 1000
104106
});
105107
});
106108

0 commit comments

Comments
 (0)