UNPKG

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