Include test annotations for analysis (#6321)

This commit is contained in:
Jace Browning
2025-04-14 14:10:47 -04:00
committed by GitHub
parent bf7ec424a7
commit 39af110ac1

View File

@ -19,8 +19,9 @@ class MyAPIReporter implements Reporter {
target: process.env.TARGET || null, target: process.env.TARGET || null,
platform: process.env.RUNNER_OS || process.platform, platform: process.env.RUNNER_OS || process.platform,
// Extra test and result data // Extra test and result data
annotations: test.annotations.map((a) => a.type), // e.g. 'fail' or 'fixme'
retry: result.retry, retry: result.retry,
tags: test.tags, tags: test.tags, // e.g. '@snapshot' or '@skipWin'
// Extra environment variables // Extra environment variables
CI_COMMIT_SHA: process.env.CI_COMMIT_SHA || null, CI_COMMIT_SHA: process.env.CI_COMMIT_SHA || null,
CI_PR_NUMBER: process.env.CI_PR_NUMBER || null, CI_PR_NUMBER: process.env.CI_PR_NUMBER || null,