@alphabin/trx
Version:
TRX reporter for Playwright tests with Azure Blob Storage upload support
53 lines (52 loc) • 1.52 kB
TypeScript
import { Reporter, FullConfig } from '@playwright/test/reporter';
import { TestReportXOptions } from './types';
/**
* Enhanced TRX reporter for Playwright tests with improved discovery and error handling
*/
export declare class TestReportXReporter implements Reporter {
private fullConfig;
private config;
private apiClient;
private metadataCollector;
private azureStorageService;
private reportDiscoveryService;
private configParser;
constructor(options?: Partial<TestReportXOptions>);
/**
* Called when the test run is starting
*/
onBegin(config: FullConfig): void;
/**
* Called when the test run is finished
*/
onEnd(): Promise<void>;
/**
* Enhanced report discovery with comprehensive validation
*/
private discoverReports;
/**
* Load and validate Playwright JSON report
*/
private loadPlaywrightReport;
/**
* Enhanced Azure upload with better validation and error handling
*/
private handleEnhancedAzureUpload;
/**
* Build enhanced test configuration with better browser detection
*/
private buildEnhancedTestConfig;
/**
* Enhanced results display with comprehensive information
*/
private showEnhancedResults;
/**
* Enhanced metadata collection with individual collector debugging
*/
private collectMetadataWithDebugging;
/**
* Formats metadata for the API
*/
private formatMetadata;
}
export default TestReportXReporter;