UNPKG

@alphabin/trx

Version:

TRX reporter for Playwright tests with Azure Blob Storage upload support

40 lines (39 loc) 1.16 kB
import GitCollector from './git.collector'; import CICollector from './ci.collector'; import SystemCollector from './system.collector'; import { Metadata } from '../types'; /** * Main metadata collector that aggregates data from all collectors */ export declare class MetadataCollector { private readonly rootDir; private readonly collectGit; private readonly collectCI; private readonly collectSystem; private readonly customMetadata?; constructor(options?: { rootDir?: string; collectGit?: boolean; collectCI?: boolean; collectSystem?: boolean; customMetadata?: Record<string, any>; }); /** * Collects metadata from all enabled collectors */ collect(): Promise<Metadata>; /** * Gets browser information from environment variables */ private getBrowserInfo; /** * Gets viewport information from environment variables */ private getViewportInfo; /** * Determines if tests are running in headless mode */ private isHeadless; } export { GitCollector, CICollector, SystemCollector }; export default MetadataCollector;