allure-js-commons
Version:
Allure JS Commons
20 lines (19 loc) • 974 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import { PathLike } from "fs";
import { AllureConfig } from "./AllureConfig.js";
import { AllureGroup } from "./AllureGroup.js";
import { AttachmentOptions, Category, ContentType, TestResult, TestResultContainer } from "./model.js";
import { AllureWriter } from "./writers/index.js";
export declare class AllureRuntime {
private config;
writer: AllureWriter;
constructor(config: AllureConfig);
startGroup(name?: string): AllureGroup;
writeResult(result: TestResult): void;
writeGroup(result: TestResultContainer): void;
writeAttachment(content: Buffer | string, options: ContentType | string | AttachmentOptions, encoding?: BufferEncoding): string;
writeAttachmentFromPath(fromPath: PathLike, options: ContentType | string | AttachmentOptions): string;
writeEnvironmentInfo(info?: Record<string, string>): void;
writeCategoriesDefinitions(categories: Category[]): void;
}