playwright/tests/playwright-test
Dmitry Gozman 621897c385 feat(test runner): run tests with different worker fixtures in a single worker
Previously, we forced a new worker for a new set of worker fixtures.
Now, we can reuse the worker by tearing down mismatching worker
fixtures between tests.

The new behavior allows all tests from a single file run in-order,
even when mixing various test types with different worker fixtures.
This is less efficient, but more predictable for the user.
Switching between worker fixtures is reported under "Reset Fixtures"
step inside "Before Hooks" and has a separate timeout.

We still force a new worker for each project and repeatEach index.
2024-10-22 13:19:16 +01:00
..
__screenshots__/playwright.artifacts.spec.ts feat: allow options in automatic screenshots (#19143) 2022-12-07 08:45:33 -08:00
assets fix(ui): print the web server output in the ui mode (#31824) 2024-07-23 16:52:32 -07:00
stable-test-runner chore: compute aria text consistently with the role accumulated text (#33157) 2024-10-17 17:06:18 -07:00
access-data.spec.ts test: remove magic headers in ttest (#20867) 2023-02-14 19:20:56 -08:00
babel.spec.ts chore: enable @babel/plugin-syntax-import-attributes all the time (#32713) 2024-09-19 16:51:35 +02:00
basic.spec.ts feat(testType): add support for test.fail.only method (#33001) 2024-10-16 06:47:23 -07:00
clear-cache.spec.ts chore: implement clear-cache through plugins (#32471) 2024-09-05 13:50:16 -07:00
command-line-filter.spec.ts chore: remove unnecessary args in ttest (#21012) 2023-02-18 13:08:17 -08:00
config.spec.ts feat: TestProject.ignoreSnapshots (#30466) 2024-04-22 16:16:38 -07:00
decorators.spec.ts chore: allow ts decorators (#22080) 2023-03-29 20:43:08 -07:00
deps.spec.ts chore(test runner): do not produce some of the fake skipped test results (#27730) 2023-10-20 17:01:46 -07:00
esm.spec.ts chore: enable @babel/plugin-syntax-import-attributes all the time (#32713) 2024-09-19 16:51:35 +02:00
exit-code.spec.ts feat: implement flag to fail flaky tests (#30618) 2024-05-15 09:10:10 -07:00
expect-configure.spec.ts chore: populate matcherResult in web assertions (#27133) 2023-09-16 14:24:10 -07:00
expect-poll.spec.ts fix(expect): respect custom message in expect.poll (#32603) 2024-09-16 00:10:06 -07:00
expect-soft.spec.ts docs: do not call custom expect message an "error message" (#29390) 2024-02-06 12:12:45 -08:00
expect-to-pass.spec.ts feat: Support intervals arg for toPass (#30037) 2024-03-29 10:17:29 -07:00
expect.spec.ts test: make sure custom asymmetric matchers work (#32829) 2024-09-26 06:27:37 -07:00
find-related-tests.spec.ts chore: make find-related-test-files work through plugins (#32465) 2024-09-05 06:52:11 -07:00
fixture-errors.spec.ts feat(test runner): run tests with different worker fixtures in a single worker 2024-10-22 13:19:16 +01:00
fixtures.spec.ts feat(test runner): run tests with different worker fixtures in a single worker 2024-10-22 13:19:16 +01:00
gitignore.spec.ts feat(config): respectGitIgnore option (#30972) 2024-05-23 12:05:02 -07:00
global-setup.spec.ts feat(test runner): allow multiple global setups (#32955) 2024-10-18 11:03:00 +02:00
golden.spec.ts fix(toHaveScreenshot): sanitize attachment names and paths (#31712) 2024-07-17 07:08:43 -07:00
hooks.spec.ts fix(test runner): timeout in fixture teardown should not prevent other slots (#32157) 2024-08-16 04:25:00 -07:00
list-files.spec.ts chore: implement server-based list files (#29633) 2024-02-23 08:29:44 -08:00
list-mode.spec.ts Revert "fix: respect .only in --list mode" (#28770) 2023-12-22 11:03:30 -08:00
loader.spec.ts fix(test runner): do not revert the transform (#31930) 2024-07-31 13:17:09 -07:00
match-grep.spec.ts fix(ui): when --grep is used, UI should only show selected tests (#31815) 2024-07-23 15:29:08 +02:00
max-failures.spec.ts fix(test-runner): do not consider retries for maxFailures (#32533) 2024-09-11 20:35:26 +02:00
only-changed.spec.ts test: speed up only-changed CT test (#32947) 2024-10-04 10:06:56 +02:00
override-timeout.spec.ts test: remove magic headers in ttest (#20867) 2023-02-14 19:20:56 -08:00
playwright-test-fixtures.ts chore: implement clear-cache through plugins (#32471) 2024-09-05 13:50:16 -07:00
playwright.artifacts.spec.ts Revert "feat(tracing): add .pwtrace to trace file extension" (#32648) 2024-09-17 15:32:30 +02:00
playwright.config.spec.ts test: remove magic headers in ttest (#20867) 2023-02-14 19:20:56 -08:00
playwright.config.ts chore: roll expect and move it to third party (#32458) 2024-09-09 13:12:20 -07:00
playwright.connect.spec.ts Revert "feat(trace): record trace upon browser closure (#31563)" (#31677) 2024-07-15 01:08:51 -07:00
playwright.ct-build.spec.ts fix(ct): allow importing components from node_modules (#30493) 2024-04-24 12:32:28 -07:00
playwright.ct-dev-server.spec.ts chore: make dev server only use public config (#32441) 2024-09-04 01:29:55 -07:00
playwright.ct-react.spec.ts test: unflake should pass "key" attribute from JSX in variable (#31141) 2024-06-04 17:57:57 +02:00
playwright.fetch.spec.ts chore: hint at unroute for handle errors (#30949) 2024-05-22 08:54:19 -07:00
playwright.reuse.browser.spec.ts fix(connect): annotate internal api calls correctly (#31715) 2024-07-17 09:00:47 +02:00
playwright.reuse.spec.ts Revert "feat(tracing): add .pwtrace to trace file extension" (#32648) 2024-09-17 15:32:30 +02:00
playwright.spec.ts fix(test runner): page.pause() should enable debug mode (#32714) 2024-09-20 00:41:16 -07:00
playwright.trace.spec.ts feat: do not record route calls in the trace (#32723) 2024-09-21 10:17:59 -07:00
playwright.unhandled.spec.ts fix(test runner): properly handle uncaught errors in test.fail() (#27734) 2023-10-23 09:14:31 -07:00
repeat-each.spec.ts test: remove magic headers in ttest (#20867) 2023-02-14 19:20:56 -08:00
reporter-attachment.spec.ts Revert "feat(tracing): add .pwtrace to trace file extension" (#32648) 2024-09-17 15:32:30 +02:00
reporter-base.spec.ts feat(base-reporter): Add tags to test output (#32930) 2024-10-07 17:14:46 -07:00
reporter-blob.spec.ts test: fix project filter test (#32525) 2024-09-09 14:00:51 -07:00
reporter-dot.spec.ts chore: run more reporter tests through blob report, some fixes (#23765) 2023-06-16 21:30:55 -07:00
reporter-github.spec.ts chore: run more reporter tests through blob report, some fixes (#23765) 2023-06-16 21:30:55 -07:00
reporter-html.spec.ts fix(html report): generate test snippets when test dir is non-root (#33162) 2024-10-17 08:33:15 -07:00
reporter-json.spec.ts feat(reporters): align and document environment variables (#30912) 2024-05-21 10:46:52 -07:00
reporter-junit.spec.ts test: fix recently added junit tests (#32844) 2024-09-26 19:32:54 -07:00
reporter-line.spec.ts chore: trim multiline step titles to first line (#31269) 2024-06-12 08:24:12 -07:00
reporter-list.spec.ts fix(list reporter): print step ends in non-TTY mode (#31703) 2024-07-17 13:36:37 +02:00
reporter-markdown.spec.ts chore: hide 'markdown' reporter (#33140) 2024-10-18 23:00:05 +02:00
reporter-onend.spec.ts feat(onEnd): allow overriding the exit code (#27010) 2023-09-12 13:37:30 -07:00
reporter.spec.ts test: unflake "should work with custom reporter" (#30526) 2024-04-24 20:03:39 -07:00
resolver.spec.ts feat: config.build.tsconfig (#33026) 2024-10-10 01:37:46 -07:00
retry.spec.ts fix(reporters): properly determine flaky status for serial mode (#30529) 2024-04-25 13:39:14 -07:00
runner.spec.ts test: fix/fixme/update a few tests (#33006) 2024-10-08 03:59:35 -07:00
shard.spec.ts fix(test runner): when sharding with beforeAll, use shards total instead of workers (#33083) 2024-10-14 13:46:06 -07:00
snapshot-path-template.spec.ts test: remove magic headers in ttest (#20867) 2023-02-14 19:20:56 -08:00
stdio.spec.ts fix(test runner): cleanup DEBUG_COLORS usage (#32764) 2024-09-26 03:15:46 -07:00
test-extend.spec.ts feat(test runner): run tests with different worker fixtures in a single worker 2024-10-22 13:19:16 +01:00
test-grep.spec.ts Fix various typos (Fixes #27396) (#27391) 2023-10-04 19:56:42 -07:00
test-ignore.spec.ts test: remove magic headers in ttest (#20867) 2023-02-14 19:20:56 -08:00
test-info.spec.ts test: remove magic headers in ttest (#20867) 2023-02-14 19:20:56 -08:00
test-modifiers.spec.ts feat(testType): add support for test.fail.only method (#33001) 2024-10-16 06:47:23 -07:00
test-output-dir.spec.ts chore: trim file names longer than 60 chars (was 100) (#29725) 2024-03-18 12:53:15 -07:00
test-parallel.spec.ts test: remove magic headers in ttest (#20867) 2023-02-14 19:20:56 -08:00
test-serial.spec.ts fix(reporters): properly determine flaky status for serial mode (#30529) 2024-04-25 13:39:14 -07:00
test-server.spec.ts chore: implement clear-cache through plugins (#32471) 2024-09-05 13:50:16 -07:00
test-step.spec.ts feat(test runner): run tests with different worker fixtures in a single worker 2024-10-22 13:19:16 +01:00
test-tag.spec.ts Revert "chore: enforce tags format via typescript types (#32384)" (#32431) 2024-09-03 10:07:08 -07:00
test-use.spec.ts feat(test runner): run tests with different worker fixtures in a single worker 2024-10-22 13:19:16 +01:00
timeout.spec.ts fix(test runner): timeout in fixture teardown should not prevent other slots (#32157) 2024-08-16 04:25:00 -07:00
to-have-screenshot.spec.ts fix(toHaveScreenshot): attach "expected" when writing a missing expectation (#31745) 2024-07-18 02:42:44 -07:00
types-2.spec.ts feat(testType): add support for test.fail.only method (#33001) 2024-10-16 06:47:23 -07:00
types.spec.ts fix(types): revert type changes made to support TS 5.5 (#32066) 2024-08-08 05:21:48 -07:00
ui-mode-fixtures.ts chore: implement tree w/o list (#33169) 2024-10-18 13:50:43 -07:00
ui-mode-test-annotations.spec.ts chore: implement tree w/o list (#33169) 2024-10-18 13:50:43 -07:00
ui-mode-test-attachments.spec.ts feat(ui mode): linkify attachment names and content (#31960) 2024-08-01 09:27:45 -07:00
ui-mode-test-ct.spec.ts chore: automatically detect the dev server (#29176) 2024-01-25 11:46:47 -08:00
ui-mode-test-filters.spec.ts chore: implement tree w/o list (#33167) 2024-10-17 16:57:45 -07:00
ui-mode-test-network-tab.spec.ts feat(ui-mode): display list of query params in request tab (#32443) 2024-09-04 07:54:44 -07:00
ui-mode-test-output.spec.ts feat(ui mode): introduce Testing Options and Settings (#31841) 2024-07-25 11:23:43 -07:00
ui-mode-test-progress.spec.ts chore: implement tree w/o list (#33167) 2024-10-17 16:57:45 -07:00
ui-mode-test-run.spec.ts chore: add aria attribute tests (#33184) 2024-10-19 14:23:08 -07:00
ui-mode-test-screencast.spec.ts test: unflake various tests (#32014) 2024-08-05 08:29:13 -07:00
ui-mode-test-setup.spec.ts chore: implement tree w/o list (#33169) 2024-10-18 13:50:43 -07:00
ui-mode-test-shortcut.spec.ts chore: address UI Mode keyboard shortcut feedback (#30088) 2024-03-25 19:48:20 +01:00
ui-mode-test-source.spec.ts fix(dupe): render dupe test error indicator (#32303) 2024-08-23 14:33:37 -07:00
ui-mode-test-tree.spec.ts chore(ui-mode): expand all button (#32994) 2024-10-07 15:42:12 -07:00
ui-mode-test-update.spec.ts chore: implement tree w/o list (#33169) 2024-10-18 13:50:43 -07:00
ui-mode-test-watch.spec.ts chore: implement tree w/o list (#33169) 2024-10-18 13:50:43 -07:00
ui-mode-trace.spec.ts chore: implement tree w/o list (#33167) 2024-10-17 16:57:45 -07:00
watch.spec.ts feat(test runner): allow stopping testrun with escape (#32584) 2024-10-08 11:39:54 -07:00
web-server.spec.ts fix(HEAD): revert GET->HEAD migration, net-effect was negative (#29738) 2024-02-29 09:02:05 -08:00
worker-index.spec.ts test: remove magic headers in ttest (#20867) 2023-02-14 19:20:56 -08:00