Skip to content

feat(test runner): add -G alias for grep-invert#41075

Open
KirtiRamchandani wants to merge 1 commit into
microsoft:mainfrom
KirtiRamchandani:feat/grep-invert-short-flag
Open

feat(test runner): add -G alias for grep-invert#41075
KirtiRamchandani wants to merge 1 commit into
microsoft:mainfrom
KirtiRamchandani:feat/grep-invert-short-flag

Conversation

@KirtiRamchandani
Copy link
Copy Markdown

Problem

Root cause

  • The test runner CLI only registered the long --grep-invert <grep> option.

Solution

  • Register -G as the short option for --grep-invert.
  • Update the CLI documentation table.
  • Add test runner coverage that exercises -G through the real CLI path.

Tests run

  • npm ci
  • npm run build
  • npm run ttest -- tests/playwright-test/match-grep.spec.ts
  • npx eslint packages/playwright/src/program.ts tests/playwright-test/match-grep.spec.ts
  • node utils/doclint/cli.js docs/src/test-cli-js.md
  • node packages/playwright/cli.js test --help
  • git diff --check

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

Test results for "MCP"

7230 passed, 1103 skipped


Merge workflow run.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

Test results for "tests 1"

4 flaky ⚠️ [chromium-library] › library/beforeunload.spec.ts:130 › should support dismissing the dialog multiple times `@ubuntu-22.04-chromium-tip-of-tree`
⚠️ [chromium-library] › library/video.spec.ts:719 › screencast › should work with video+trace `@chromium-ubuntu-22.04-node20`
⚠️ [chromium-library] › library/video.spec.ts:275 › screencast › should capture navigation `@chromium-ubuntu-22.04-node22`
⚠️ [firefox-page] › page/page-emulate-media.spec.ts:144 › should keep reduced motion and color emulation after reload `@firefox-ubuntu-22.04-node20`

44097 passed, 865 skipped


Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Implement short-form option for command line argument --grep-invert

2 participants