UNPKG

yasin-playwright-slack-report

Version:

Send Slack notifications with Playwright test results using a custom reporter.

21 lines 647 B
import { Reporter, TestResult, FullResult, TestCase } from '@playwright/test/reporter'; interface SlackReporterOptions { webhookUrl: string; buildId?: string; branchName?: string; htmlReportUrl?: string; } declare class SlackReporter implements Reporter { private webhookUrl; private buildId?; private branchName?; private htmlReportUrl?; private passed; private failed; private skipped; constructor(options: SlackReporterOptions); onTestEnd(_: TestCase, result: TestResult): void; onEnd(result: FullResult): Promise<void>; } export default SlackReporter; //# sourceMappingURL=index.d.ts.map