@mmisty/cypress-allure-adapter
Version:
cypress allure adapter to generate allure results during tests execution (Allure TestOps compatible)
38 lines (37 loc) • 1.08 kB
TypeScript
/**
* Allure Task Server
*
* Unified server that handles all Allure operations in a separate process:
* - Filesystem operations (mkdir, writeFile, readFile, etc.)
* - High-level Allure operations (attachVideo, moveToWatch, etc.)
*
* This prevents blocking the main Cypress process.
*/
/**
* Find an available port
*/
export declare const findAvailablePort: (startPort?: number) => Promise<number>;
/**
* Allure Task Server
*/
export declare class AllureTaskServer {
private server;
private operationQueue;
private port;
private lastActivityTime;
private inactivityTimer;
private isShuttingDown;
private static readonly INACTIVITY_TIMEOUT_MS;
private static readonly SHUTDOWN_TIMEOUT_MS;
constructor(maxConcurrentOps?: number);
private resetInactivityTimer;
private forceShutdown;
start(requestedPort?: number): Promise<number>;
stop(): Promise<void>;
getPort(): number | null;
}
/**
* Entry point when running as standalone script
*/
export declare const runServer: () => Promise<void>;