UNPKG

tdpw

Version:

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

63 lines 1.83 kB
/** * Last Failed command - Retrieve cached test failure data */ import type { Config } from '../../config'; import type { Command } from '../../types'; import { z } from 'zod'; /** * CLI options specific to the last failed command */ export interface LastFailedOptions { cacheId?: string; branch?: string; commit?: string; shard?: string; token?: string; verbose?: boolean; } /** * Zod schema for last failed options validation */ export declare const LastFailedOptionsSchema: z.ZodObject<{ cacheId: z.ZodOptional<z.ZodString>; branch: z.ZodOptional<z.ZodString>; commit: z.ZodOptional<z.ZodString>; shard: z.ZodOptional<z.ZodString>; token: z.ZodOptional<z.ZodString>; verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, z.core.$strip>; export type ValidatedLastFailedOptions = z.infer<typeof LastFailedOptionsSchema>; /** * Last Failed command implementation */ export declare class LastFailedCommand implements Command { private readonly config; readonly name = "last-failed"; readonly description = "Get last failed test cases for Playwright execution"; constructor(config: Config); /** * Execute the last failed command */ execute(options: ValidatedLastFailedOptions): Promise<void>; /** * Parse shard information from string format (e.g., "1/3") */ private parseShardInfo; /** * Determine cache ID using same logic as cache store command */ private determineCacheId; /** * Get cached failure data from API */ private getCachedFailures; /** * Format failure data for Playwright command */ private formatPlaywrightArgs; /** * Escape test title for Playwright's -g flag */ private escapeForGrep; } //# sourceMappingURL=last-failed.d.ts.map