mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
33 lines
866 B
Markdown
33 lines
866 B
Markdown
## Debugging Flaky End-to-End Tests - Usage
|
|
|
|
To debug flaky end-to-end (E2E) tests, use the following command:
|
|
|
|
```bash
|
|
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:**
|
|
|
|
```bash
|
|
pnpm run debug:flaky:e2e CAT-726 10
|
|
```
|
|
|
|
2. **Run all tests containing "login" five times (default burn count):**
|
|
|
|
```bash
|
|
pnpm run debug:flaky:e2e login
|
|
```
|
|
|
|
3. **Run all tests five times (default grep and burn count):**
|
|
|
|
```bash
|
|
pnpm run debug:flaky:e2e
|
|
```
|