mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: add id for each test to JSONReporter (#16494)
This commit is contained in:
parent
ed1e5efc5c
commit
9f22ae9aa9
@ -150,6 +150,7 @@ class JSONReporter implements Reporter {
|
|||||||
ok: test.ok(),
|
ok: test.ok(),
|
||||||
tags: (test.title.match(/@[\S]+/g) || []).map(t => t.substring(1)),
|
tags: (test.title.match(/@[\S]+/g) || []).map(t => t.substring(1)),
|
||||||
tests: [ this._serializeTest(test) ],
|
tests: [ this._serializeTest(test) ],
|
||||||
|
id: test.id,
|
||||||
...this._relativeLocation(test.location),
|
...this._relativeLocation(test.location),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -469,6 +469,7 @@ export interface JSONReportSpec {
|
|||||||
title: string;
|
title: string;
|
||||||
ok: boolean;
|
ok: boolean;
|
||||||
tests: JSONReportTest[];
|
tests: JSONReportTest[];
|
||||||
|
id: string;
|
||||||
file: string;
|
file: string;
|
||||||
line: number;
|
line: number;
|
||||||
column: number;
|
column: number;
|
||||||
|
@ -80,6 +80,7 @@ export interface JSONReportSpec {
|
|||||||
title: string;
|
title: string;
|
||||||
ok: boolean;
|
ok: boolean;
|
||||||
tests: JSONReportTest[];
|
tests: JSONReportTest[];
|
||||||
|
id: string;
|
||||||
file: string;
|
file: string;
|
||||||
line: number;
|
line: number;
|
||||||
column: number;
|
column: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user