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