Files
..

Debugging Flaky End-to-End Tests - Usage

To debug flaky end-to-end (E2E) tests, use the following command:

pnpm run debug:flaky:e2e -- <grep_filter> <burn_count>

Parameters:

  • <grep_filter>: (Optional) A string to filter tests by their it() or describe() block titles, or by tags if using the @cypress/grep plugin. If omitted, all tests will be run.
  • <burn_count>: (Optional) The number of times to run the filtered tests. Defaults to 5 if not provided.

Examples:

  1. Run all tests tagged with CAT-726 ten times:

    pnpm run debug:flaky:e2e CAT-726 10
    
  2. Run all tests containing "login" five times (default burn count):

    pnpm run debug:flaky:e2e login
    
  3. Run all tests five times (default grep and burn count):

    pnpm run debug:flaky:e2e