docs: clarify default retry behavior (#9525)

This commit is contained in:
Yury Semikhatsky 2021-10-14 19:28:47 -07:00 committed by GitHub
parent c711fb35ad
commit 4680ef46de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -16,7 +16,7 @@ These options define your test suite:
- `name: string` - Project name, useful when defining multiple [test projects](#projects).
- `outputDir: string` - Output directory for files created during the test run.
- `repeatEach: number` - The number of times to repeat each test, useful for debugging flaky tests.
- `retries: number` - The maximum number of retry attempts given to failed tests.
- `retries: number` - The maximum number of retry attempts given to failed tests. If not specified, failing tests are not reried.
- `testDir: string` - Directory that will be recursively scanned for test files.
- `testIgnore: string | RegExp | (string | RegExp)[]` - Files matching one of these patterns are not considered test files.
- `testMatch: string | RegExp | (string | RegExp)[]` - Only the files matching one of these patterns are considered test files.

View File

@ -219,7 +219,7 @@ Tests that took more than `threshold` milliseconds are considered slow, and the
## property: TestConfig.retries
- type: <[int]>
The maximum number of retry attempts given to failed tests. Learn more about [test retries](./test-retries.md#retries).
The maximum number of retry attempts given to failed tests. By default failing tests are not reried. Learn more about [test retries](./test-retries.md#retries).
## property: TestConfig.shard
- type: <[Object]>

View File

@ -56,7 +56,7 @@ This scheme works perfectly for independent tests and guarantees that failing te
## Retries
Playwright Test supports **test retries**. When enabled, failing tests will be retried multiple times until they pass, or until the maximum number of retries is reached.
Playwright Test supports **test retries**. When enabled, failing tests will be retried multiple times until they pass, or until the maximum number of retries is reached. By default failing tests are not retried.
```bash
# Give failing tests 3 retry attempts

View File

@ -537,7 +537,8 @@ interface TestConfig {
*/
repeatEach?: number;
/**
* The maximum number of retry attempts given to failed tests. Learn more about [test retries](https://playwright.dev/docs/test-retries#retries).
* The maximum number of retry attempts given to failed tests. By default failing tests are not reried. Learn more about
* [test retries](https://playwright.dev/docs/test-retries#retries).
*/
retries?: number;
/**