UNPKG

mocha8allure

Version:

Allure mocha reporter

89 lines (88 loc) 1.85 kB
/// <reference types="node" /> import { AllureMimeTypes, AllureDescriptionTypes } from "./constants"; export declare type LoggerAttachment = { title: string; data: string | Buffer; type: AllureMimeTypes; }; export declare type LoggerStep = { name: string; title?: string; status?: string; attachments?: LoggerAttachment[]; steps?: LoggerStep[]; }; export declare type AllureDescription = { _attributes: { type: AllureDescriptionTypes; }; _text: string; }; export declare type AllureAttachment = { _attributes: { title: string; source: string; type: AllureMimeTypes; }; }; export declare type AllureStep = { stepId?: string; _attributes: { start: number; stop: number; status: string; }; name: string; title: string; attachments: { attachment: AllureAttachment[]; }; steps: { step: AllureStep[]; }; failure?: { message: string; "stack-trace": any; }; }; export declare type AllureTest = { testId?: string; _attributes: { start: number; stop: number; status: string; }; name: string; title: string; description?: AllureDescription; labels: { label: string[]; }; parameters: { parameter: string[]; }; steps: { step: AllureStep[]; }; attachments: { attachment: AllureAttachment[]; }; failure?: { message: string; "stack-trace": any; }; }; export declare type AllureSuite = { suiteId?: string; "test-suite": { _attributes: { start: number; stop: number; }; name: string; title: string; "test-cases": { "test-case": AllureTest[]; }; }; };