mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-01 08:34:02 +03: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(),
|
||||
tags: (test.title.match(/@[\S]+/g) || []).map(t => t.substring(1)),
|
||||
tests: [ this._serializeTest(test) ],
|
||||
id: test.id,
|
||||
...this._relativeLocation(test.location),
|
||||
};
|
||||
}
|
||||
|
@ -469,6 +469,7 @@ export interface JSONReportSpec {
|
||||
title: string;
|
||||
ok: boolean;
|
||||
tests: JSONReportTest[];
|
||||
id: string;
|
||||
file: string;
|
||||
line: number;
|
||||
column: number;
|
||||
|
@ -80,6 +80,7 @@ export interface JSONReportSpec {
|
||||
title: string;
|
||||
ok: boolean;
|
||||
tests: JSONReportTest[];
|
||||
id: string;
|
||||
file: string;
|
||||
line: number;
|
||||
column: number;
|
||||
|
Loading…
Reference in New Issue
Block a user