1 |
|
2 | import { PathLike } from "fs";
|
3 | import { Category, TestResult, TestResultContainer } from "../model";
|
4 | import { AllureWriter } from "./AllureWriter";
|
5 | export interface AllureResults {
|
6 | tests: TestResult[];
|
7 | groups: TestResultContainer[];
|
8 | attachments: Record<string, Buffer | string>;
|
9 | }
|
10 | export declare class InMemoryAllureWriter implements AllureWriter {
|
11 | groups: TestResultContainer[];
|
12 | tests: TestResult[];
|
13 | attachments: Record<string, Buffer | string>;
|
14 | categories?: Category[];
|
15 | envInfo?: Record<string, string | undefined>;
|
16 | writeGroup(result: TestResultContainer): void;
|
17 | writeResult(result: TestResult): void;
|
18 | writeAttachment(name: string, content: Buffer | string): void;
|
19 | writeAttachmentFromPath(targetFileName: string, sourceFilePath: PathLike): void;
|
20 | writeCategoriesDefinitions(categories: Category[]): void;
|
21 | writeEnvironmentInfo(envInfo?: Record<string, string | undefined>): void;
|
22 | reset(): void;
|
23 | getMaybeTestByName(name: string): TestResult | undefined;
|
24 | getTestByName(name: string): TestResult;
|
25 | getMaybeGroupByName(name: string): TestResultContainer | undefined;
|
26 | getGroupByName(name: string): TestResultContainer;
|
27 | }
|