chore: add id for each test to JSONReporter (#16494)

This commit is contained in:
Elizaveta Bezyaikna 2022-08-15 19:28:21 +03:00 committed by GitHub
parent ed1e5efc5c
commit 9f22ae9aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -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),
};
}

View File

@ -469,6 +469,7 @@ export interface JSONReportSpec {
title: string;
ok: boolean;
tests: JSONReportTest[];
id: string;
file: string;
line: number;
column: number;

View File

@ -80,6 +80,7 @@ export interface JSONReportSpec {
title: string;
ok: boolean;
tests: JSONReportTest[];
id: string;
file: string;
line: number;
column: number;