UNPKG

597 BTypeScriptView Raw
1/// <reference types="node" />
2/// <reference types="node" />
3import { PathLike } from "fs";
4import { Category, TestResult, TestResultContainer } from "../model.js";
5export interface AllureWriter {
6 writeResult(result: TestResult): void;
7 writeGroup(result: TestResultContainer): void;
8 writeAttachment(name: string, content: Buffer | string, encoding?: BufferEncoding): void;
9 writeAttachmentFromPath(from: PathLike, distFileName: string): void;
10 writeEnvironmentInfo(info: Record<string, string | undefined>): void;
11 writeCategoriesDefinitions(categories: Category[]): void;
12}