UNPKG

tdpw

Version:

CLI tool for uploading Playwright test reports to TestDino platform with TestDino storage support

59 lines 1.68 kB
/** * Cache command - Store test execution metadata after Playwright runs */ import type { Config } from '../../config'; import type { Command } from '../../types'; /** * CLI options specific to the cache command */ export interface CacheOptions { cacheId?: string; workingDir?: string; token?: string; verbose?: boolean; } /** * Zod schema for cache options validation */ import { z } from 'zod'; export declare const CacheOptionsSchema: z.ZodObject<{ cacheId: z.ZodOptional<z.ZodString>; workingDir: z.ZodOptional<z.ZodString>; token: z.ZodOptional<z.ZodString>; verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, z.core.$strip>; export type ValidatedCacheOptions = z.infer<typeof CacheOptionsSchema>; /** * Cache command implementation */ export declare class CacheCommand implements Command { private readonly config; readonly name = "cache"; readonly description = "Store test execution metadata after Playwright runs"; constructor(config: Config); /** * Execute the cache command */ execute(options: ValidatedCacheOptions): Promise<void>; /** * Auto-detect shard information from Playwright configuration */ private detectShardInfo; /** * Discover and extract test failure data */ private extractFailureData; /** * Collect build and CI metadata using existing collectors */ private collectBuildMetadata; /** * Prepare cache payload for TestDino API based on PRD specification */ private prepareCachePayload; /** * Send cache data to TestDino API */ private sendCacheData; } //# sourceMappingURL=cache.d.ts.map