playwright/packages/playwright
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
..
bundles chore: fix build warnings (#31616) 2024-07-11 14:12:59 +02:00
src feat(test runner): --only-changed option (#31727) 2024-07-23 18:04:17 +02:00
types docs: spelling (#31779) 2024-07-22 06:45:22 -07:00
.eslintrc.js chore: strengthen linting (#29669) 2024-02-26 16:52:28 -08:00
.npmignore chore: make @playwright/test depend on playwright (#26946) 2023-09-08 14:23:35 -07:00
cli.js chore: split cli processing into cli endpoint and program (#29131) 2024-01-23 15:22:09 -08:00
index.d.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
index.js chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
index.mjs chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
jsx-runtime.js fix: pass key attribute from jsx to component test (#30426) 2024-04-26 09:49:44 -07:00
jsx-runtime.mjs chore: make @playwright/test depend on playwright (#26946) 2023-09-08 14:23:35 -07:00
package.json chore: mark v1.46.0-next (#31324) 2024-06-14 18:22:42 -07:00
test.d.ts chore: make @playwright/test depend on playwright (#26946) 2023-09-08 14:23:35 -07:00
test.js chore: remove manual __esModule override (#28935) 2024-01-10 16:28:08 -08:00
test.mjs fix: merge{Tests,Expects} via ESM imports (#27630) 2023-10-17 00:09:44 +02:00
ThirdPartyNotices.txt chore: bump @types/node and chokidar (#31527) 2024-07-03 09:40:37 +02:00