Commit Graph

53 Commits

Author SHA1 Message Date
Pavel Feldman 2c0c709f60 chore: simplify trace sw (#37706) 2025-10-07 15:51:08 -07:00
Dmitry Gozman d5b4c6535b feat(test runner): --test-list and --test-list-invert (#37552) 2025-09-24 20:55:33 +01:00
Dmitry Gozman cedd8ab179 Revert "feat: --last-run-file (#37209)" (#37550) 2025-09-24 11:05:13 +01:00
Dmitry Gozman 4fdeec7b7c feat: --last-run-file (#37209) 2025-08-29 10:55:01 +01:00
Dmitry Gozman 75db8e5ef7 chore: unship --filter cli option (#37030) 2025-08-14 09:57:41 +01:00
Dmitry Gozman eea3f4f4a6 feat: --filter that accepts a json filter file (#36944) 2025-08-07 09:30:08 +01:00
Max Schmitt 315287b3ad docs: remove -gv test cli option (#36807) 2025-07-28 10:29:26 +02:00
Adam Gastineau 333dde055d docs: add clarity to CLI options (#35954) 2025-05-16 05:52:31 -07:00
Debbie O'Brien d288fbcc41 docs: Improve aria snapshots documentation clarity and examples (#34509)
Signed-off-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2025-01-30 20:07:48 +00:00
Debbie O'Brien 900382540a docs: add --update-source-method option for snapshot updates in test-cli-js (#34448) 2025-01-23 14:17:23 +00:00
Max Schmitt e0e4da8ead docs(cli): fix docs rendering (#33751) 2024-11-24 14:50:12 +01:00
Pavel Feldman 66d9f3acbe chore: introduce update-snapshots=changed (#33735) 2024-11-22 17:41:31 -08:00
Dmitry Gozman a54ed48b42 feat(test runner): --tsconfig cli option (#31932)
Introduce `--tsconfig` to specify a single config to be used for all
imported files, instead of looking up tsconfig for each file separately.

Fixes #12829.
2024-08-06 06:55:15 -07:00
Max Schmitt b214941a01 chore: make it more clear that --only-changed is per file (#31874) 2024-07-26 12:41:33 +02:00
Simon Knott f23d02a211 feat(test runner): --only-changed option (#31727)
Introduces an `--only-changed [base ref]` option.

`playwright test --only-changed` filters the test run to only run test
suites that have uncommitted changes.
`playwright test --only-changed=foo` runs only tests that were changed
since commit `foo`.

In pull request CI, this can be used to run changed tests first and fail
fast: `--only-changed=$GITHUB_BASE_REF`.
During local development, it can be used to quickly filter down to the
touched set of tests suites.
In some rare usecases, this can also help to cut down on CI usage for
pull requests. Tread with caution though.

File dependencies are taken into account to ensure that if you touched a
utility file, all relevant tests are still executed.

Closes https://github.com/microsoft/playwright/issues/15075
2024-07-23 18:04:17 +02:00
Max Schmitt 1fafbe580c docs(test-cli): remove --tag from docs (#31041)
Fixes https://github.com/microsoft/playwright/issues/31038
2024-05-28 09:08:34 -07:00
Matt Marsh d048ee4f5b docs(cli): correct CLI grep documentation (#30940)
The documentation for command line usage of `--grep` did not provide the
correct string used for comparisons. This has now been fixed to include
the project name.

Fixes #30895
2024-05-22 16:05:20 -07:00
Joe-Hendley 6ae5cd3824 feat: implement flag to fail flaky tests (#30618)
Implements feature requested in
https://github.com/microsoft/playwright/issues/30457

The test runner treats flaky tests as failures when the flag is enabled,
but still reports flaky tests as flaky in the reporting interface. It
feels like something worth discussing as this behaviour makes sense to
me, but looked a bit odd to @BJSS-russell-pollock when I ran this past
him.

Closes #30457.
2024-05-15 09:10:10 -07:00
Viktor Szépe 150cbcbdf3 chore: fix typos (#30645) 2024-05-08 19:40:03 +01:00
Pavel Feldman 14413148f4 chore: document --last-failed (#30544)
drive-by: undocument --browser
2024-04-25 12:29:51 -07:00
Yury Semikhatsky 9a1e0a8ff7 docs: custom reporter path in --reporter option (#29585)
Fixes https://github.com/microsoft/playwright/issues/29525
2024-02-20 13:32:53 -08:00
Yury Semikhatsky f3fde992eb chore: remove --project-grep, add wildcard support (#29537)
Reference #15128
2024-02-16 19:18:00 -08:00
Dmitry Gozman bd5403dcad chore: remove --tag and tagFilter (#29468)
This makes new tags filtered by the `grep`. New `TestCase.tags` API now
includes both old and new tags.
2024-02-15 11:37:16 -08:00
Yury Semikhatsky 7834beb932 chore: extract --project-grep option for matching with regex (#29445)
Reference https://github.com/microsoft/playwright/issues/15128
2024-02-10 11:19:00 -08:00
Dmitry Gozman 3331a40647 feat(test runner): tags/annotations (#29248)
API changes:
- `test(title, details, body)` where details contain `tag` and
`annotation`.
- similar `details` property added to `test.skip`, `test.fail`,
`test.fixme`, `test.only`, `test.describe` and other `test.describe.*`
variations.
- `TestProject.tagFilter`/`TestConfig.tagFilter` that supports logical
tag expressions with `(`, `)`, `and`, `or` and `not`.
- `--tag` CLI option to filter by tags.
- New annotations are available in `TestInfo.annotations` and
`TestCase.annotations`.
- New tags are available in `TestCase.tags`.
    
Reporter changes:
- `json` reporter includes new tags in addition to old `@smoke`-style
tags. **Breaking**: tags are now listed with the leading `@` symbol.
- `html` reporter filters by old and new tags with the same `@smoke`
token.

Fixes #29229, fixes #23180.
2024-02-07 16:31:25 -08:00
Max Schmitt a6e0af6767 feat: parse projects option as RegExp (#29327)
Fixes https://github.com/microsoft/playwright/issues/15128
Relates https://github.com/microsoft/playwright/pull/17244

---------

Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2024-02-02 23:05:20 +01:00
Daniel Han be6ab76c04 docs: add CLI documentation for --no-deps (#29235) 2024-01-30 11:44:33 -08:00
Dmitry Gozman ac3600ec96 feat: explain that argument is a regex (#28590)
- in docs;
- in the error message.

Terminal output:

```
$ npx playwright test foobar
Error: No tests found.
Make sure that arguments are regular expressions matching test files.
You may need to escape symbols like "$" or "*" and quote the arguments.
```

References #28551.
2023-12-11 17:35:39 -08:00
Yury Semikhatsky 854ae4eede docs: remove duplicate entry for --config (#28357) 2023-11-27 11:38:52 -08:00
Yury Semikhatsky 2b4d51b1e8 docs: grep for project dependencies (#28299)
Fixes https://github.com/microsoft/playwright/issues/28296
2023-11-22 12:31:54 -08:00
Oleksandr Pelykh 7cd390b708 docs (test-cli-js.md): fix typo for list marker (#27636) 2023-10-18 13:56:22 -07:00
Debbie O'Brien 3773f004db docs: add intros for all pages (#27480) 2023-10-06 15:08:51 +02:00
Max Schmitt 1383844af8 docs: make --grep more clear (#26324)
Fixes https://github.com/microsoft/playwright/issues/24604
2023-08-07 17:40:30 +02:00
Debbie O'Brien d9e7a4fffd docs: remove test advanced guide (#22028) 2023-04-18 10:47:32 +02:00
MarcNum fbdafc5fe3 feat: Adding trace option 'on-all-retries' (#21985)
Fixes: #21860
2023-03-31 13:04:24 -07:00
Tim Deschryver 45faf0cd80 docs: add --ui to CLI options (#21966) 2023-03-24 15:19:02 -07:00
Debbie O'Brien 461723912f docs: add missing option and change to table (#21711) 2023-03-17 07:50:50 +01:00
Vincent G bb275cccb6 docs(test-cli): typo for tests at a specific line (#19908) 2023-01-09 09:14:31 -08:00
Max Schmitt af6e93dfd6 docs(test-cli): document --trace mode (#19474) 2022-12-15 17:14:21 +01:00
Max Schmitt cfad84cbca docs(test-cli): remove --ignore-snapshots alias (#18295)
Fixes https://github.com/microsoft/playwright/issues/18291

Signed-off-by: Max Schmitt <max@schmitt.mx>
2022-10-24 10:49:58 -07:00
Bastian 29ff00ead2 docs(cli): typo in --debug flag (#17455) 2022-09-20 14:00:59 +02:00
Debbie O'Brien da1598d45f docs: Remove tocs (#17133) 2022-09-07 12:30:31 +02:00
Andrey Lushnikov fafd9837ba feat: introduce the --ignore-snapshots option (#17004)
This patch introduces `--ignore-snapshots` Playwright Test CLI option,
and `ignoreSnapshots` configuration argument.
2022-09-01 05:34:36 -07:00
Debbie O'Brien 54f7141877 docs: debug docs rework for simpler debug intro (#15836)
Co-authored-by: Max Schmitt <max@schmitt.mx>
2022-07-27 13:12:01 +02:00
Bill Brower 21c510ee0d chore(cli): add example for running tests against a project (#14926) 2022-06-20 19:08:18 -07:00
Takuya Matsuda 634ba85c83 docs: fix grep example command (#14138) 2022-05-13 09:25:56 -07:00
Max Schmitt 5536e64538 feat(test-runner): support filtering by columns (#13401) 2022-04-07 22:45:45 +02:00
Dmitry Gozman fde2f6a77f docs: separate doc for test timeouts (#10448) 2021-11-19 17:06:46 -08:00
Max Schmitt 131239569d feat(test-runner): add --debug CLI flag (#8938) 2021-09-15 21:19:31 +02:00
Dmitry Gozman 27f4ef566e docs: test parallel/failures docs (#8706) 2021-09-08 07:44:26 -07:00