UNPKG

aft-reporting-filesystem

Version:

Automated Functional Testing (AFT) reporting plugin package supporting logging to files

26 lines (25 loc) 1.01 kB
import { AftConfig, ReportingPlugin, ReportingPluginConfig, LogLevel, LogMessageData, TestResult, EllipsisLocation } from "aft-core"; export declare class FilesystemReportingPluginConfig extends ReportingPluginConfig { logLevel: LogLevel; outputPath: string; includeResults: boolean; dateFormat: string; maxFilenameLength: number; ellipsisLocation: EllipsisLocation; } export declare class FilesystemReportingPlugin extends ReportingPlugin { get logLevel(): LogLevel; private readonly _outputPath; private readonly _includeResults; private readonly _dateFormat; private readonly _level; private readonly _maxFilenameLength; private readonly _ellipsisLocation; constructor(aftCfg?: AftConfig); initialise: (logName: string) => Promise<void>; log: (logObj: LogMessageData) => Promise<void>; submitResult: (result: TestResult) => Promise<void>; finalise: (logName: string) => Promise<void>; private _appendToFile; private _format; }