feat(parallelIndex): added parallelIndex to JSONReportTestResult

Co-authored-by: Neel Deshmukh <neel.deshmukh1@gmail.com>
Co-authored-by: Marcelo Villalobos Diaz <mvillalobosdiaz@csumb.edu>
This commit is contained in:
Christopher Tangonan 2025-02-12 02:36:32 +00:00
parent bd74fc4964
commit 423a0aae31
2 changed files with 2 additions and 0 deletions

View file

@ -203,6 +203,7 @@ class JSONReporter implements ReporterV2 {
const steps = result.steps.filter(s => s.category === 'test.step');
const jsonResult: JSONReportTestResult = {
workerIndex: result.workerIndex,
parallelIndex: result.parallelIndex,
status: result.status,
duration: result.duration,
error: result.error,

View file

@ -291,6 +291,7 @@ export interface JSONReportError {
export interface JSONReportTestResult {
workerIndex: number;
parallelIndex: number;
status: TestStatus | undefined;
duration: number;
error: TestError | undefined;