MCPcopy
hub / github.com/microsoft/playwright / TestReporter

Class TestReporter

tests/playwright-test/reporter.spec.ts:769–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767
768test('step attachments are referentially equal to result attachments', async ({ runInlineTest }) => {
769 class TestReporter implements Reporter {
770 onStepEnd(test: TestCase, result: TestResult, step: TestStep) {
771 console.log('%%%', JSON.stringify({
772 title: step.title,
773 attachments: step.attachments.map(a => result.attachments.indexOf(a)),
774 }));
775 }
776 }
777 const result = await runInlineTest({
778 'reporter.ts': `module.exports = ${TestReporter.toString()}`,
779 'playwright.config.ts': `module.exports = { reporter: './reporter' };`,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…