Include group name in error annotations

This commit is contained in:
Michal Dorner 2021-02-24 21:33:29 +01:00
parent 8dba8714d0
commit fbb83bff74
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786

View file

@ -53,7 +53,7 @@ export function getAnnotations(results: TestRunResult[], maxCount: number): Anno
errors.push({
testRunPaths: [tr.path],
suiteName: ts.name,
testName: tc.name,
testName: tg.name ? `${tg.name}${tc.name}` : tc.name,
details: err.details,
message: err.message ?? getFirstNonEmptyLine(err.details) ?? 'Test failed',
path,