docs(test-annotations): add grep scripts examples for windows shells (#24304)
Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
6a3721eb9c
commit
f453a17ede
|
|
@ -93,6 +93,18 @@ To run tests containing either tag (logical `OR` operator):
|
||||||
npx playwright test --grep "@fast|@slow"
|
npx playwright test --grep "@fast|@slow"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On Windows shells:
|
||||||
|
|
||||||
|
- PowerShell
|
||||||
|
```powershell
|
||||||
|
npx playwright test --grep --% "@fast^|@slow"
|
||||||
|
```
|
||||||
|
|
||||||
|
- Command Prompt(cmd.exe) / Git Bash:
|
||||||
|
```cmd
|
||||||
|
npx playwright test --grep "@fast^|@slow"
|
||||||
|
```
|
||||||
|
|
||||||
Or run tests containing both tags (logical `AND` operator) using regex lookaheads:
|
Or run tests containing both tags (logical `AND` operator) using regex lookaheads:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue