Playwright test runner adds -G shorthand
Introduced 2026-06-15 · score 0.95
HOW TO USE IT
When you need to exclude tests matching a pattern, run `npx playwright test -G <grep>`. `-G` is shorthand for `--grep-invert` and runs tests that do not match the regular expression.
npx playwright test -G "<grep>"WHY THIS HELPS
Exclude matching tests from a Playwright test run using the command line.
BEFORE THIS CHANGE
Use `--grep-invert` to exclude matching tests.
REQUIREMENTS AND LIMITATIONS
- Version: v1.61.0
- -G <grep> (alias: --grep-invert <grep>) (required): Regular expression; only tests that do not match it run.
FIRST-PARTY EVIDENCE
Check the installed version and the source before using it. Entry JSON