prettier-playwright-msteams-report
Version:
A modified version of the Playwright MS Teams Messager
28 lines (27 loc) • 1.04 kB
TypeScript
import type { Reporter, FullConfig, Suite, TestCase, TestResult, FullResult } from "@playwright/test/reporter";
import { WebhookType } from "./models";
export interface MsTeamsReporterOptions {
webhookUrl?: string;
webhookType?: WebhookType;
title?: string;
linkToResultsUrl?: string | (() => string);
linkToResultsText?: string;
linkUrlOnFailure?: string | (() => string);
linkTextOnFailure?: string;
notifyOnSuccess?: boolean;
mentionOnFailure?: string;
mentionOnFailureText?: string;
enableEmoji?: boolean;
quiet?: boolean;
debug?: boolean;
shouldRun?: ((suite: Suite) => boolean);
}
export default class MsTeamsReporter implements Reporter {
private options;
private suite;
constructor(options: MsTeamsReporterOptions);
onBegin(_: FullConfig, suite: Suite): void;
onStdOut(chunk: string | Buffer, _: void | TestCase, __: void | TestResult): void;
onStdErr(chunk: string | Buffer, _: TestCase, __: TestResult): void;
onEnd(_: FullResult): Promise<void>;
}