donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
22 lines • 1.14 kB
TypeScript
/**
* @fileoverview Reconstructs a `DonobuReport` from live Playwright `Reporter`
* events. Shared across all Donobu reporter classes (HTML, Markdown, Slack)
* so they all agree on the canonical shape sent downstream to the renderers
* and the auto-heal merge step.
*
* The output structure mirrors Playwright's native JSON reporter:
* suites (one per file) → specs (one per test title) → tests (one per project)
* plus the Donobu-specific `metadata` fields the merge + render steps rely on.
*/
import type { TestCase, TestResult } from '@playwright/test/reporter';
import type { DonobuReport } from './model';
/**
* Build a canonical `DonobuReport` from the per-test result accumulators that
* each Donobu reporter maintains during a run.
*
* Callers are expected to fill in `metadata` (specifically the `donobuOutputs`
* entry for their format) before persisting the result — this helper owns the
* structure walk, not the output-path accounting.
*/
export declare function buildDonobuReport(resultsByTest: Map<TestCase, TestResult[]>, rootDir?: string): DonobuReport;
//# sourceMappingURL=buildReport.d.ts.map