From 36d77c2b8aadcdc125dfed70e642d80751bb1953 Mon Sep 17 00:00:00 2001 From: JacksonLei123 Date: Wed, 18 Dec 2024 21:22:25 -0500 Subject: [PATCH] feat: describing --failDependentTests option --- packages/playwright/src/program.ts | 2 +- packages/playwright/types/test.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/playwright/src/program.ts b/packages/playwright/src/program.ts index efef7a8aea..c9a97205d6 100644 --- a/packages/playwright/src/program.ts +++ b/packages/playwright/src/program.ts @@ -376,7 +376,7 @@ const testOptions: [string, string][] = [ ['--pass-with-no-tests', `Makes test run succeed even if no tests were found`], ['--project ', `Only run tests from the specified list of projects, supports '*' wildcard (default: run all projects)`], ['--quiet', `Suppress stdio`], - ['--failDependentTests', `fail all `], + ['--failDependentTests', `Automatically fail all project tests if project dependencies fail`], ['--repeat-each ', `Run each test N times (default: 1)`], ['--reporter ', `Reporter to use, comma-separated, can be ${builtInReporters.map(name => `"${name}"`).join(', ')} (default: "${defaultReporter}")`], ['--retries ', `Maximum retry count for flaky tests, zero for no retries (default: no retries)`], diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index 075db8e23b..fed27975a8 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -1333,7 +1333,7 @@ interface TestConfig { quiet?: boolean; /** - * Whether to automatically fail dependency tests after parent test fails + * Whether to automatically fail all project tests if one of its dependencies fail * * **Usage** *