UNPKG

850 BTypeScriptView Raw
1/// <reference types="node" />
2import { PathLike } from "fs";
3import { AllureConfig } from "./AllureConfig";
4import { AllureGroup } from "./AllureGroup";
5import { AttachmentOptions, Category, ContentType, TestResult, TestResultContainer } from "./model";
6export declare class AllureRuntime {
7 private config;
8 private writer;
9 constructor(config: AllureConfig);
10 startGroup(name?: string): AllureGroup;
11 writeResult(result: TestResult): void;
12 writeGroup(result: TestResultContainer): void;
13 writeAttachment(content: Buffer | string, options: ContentType | string | AttachmentOptions): string;
14 writeAttachmentFromPath(filePath: PathLike, options: ContentType | string | AttachmentOptions): string;
15 writeEnvironmentInfo(info?: Record<string, string>): void;
16 writeCategoriesDefinitions(categories: Category[]): void;
17}