playwright/packages
Dmitry Gozman 9cd704220c
reland(test runner): run hooks/modifiers as a part of the test (#12518)
Reland: worker.stop() before worker.run() was hanging because
`_runFinished` promise was not initially resolved.
---
This moves `beforeAll`, `afterAll` and some modifiers from running
as a separate entity into running inside a test.

Pros:
- All errors are reported as test errors.
- All artifacts are collected as test artifacts.
- Reporters support this out of the box.

Details:
- Each test computes the necessary hooks to run and runs them.
- Teardown is usually performed during the test (on test failure or worker stop).
- `skipRemaining` is added to `DonePayload` to preserve the behavior
  where `beforeAll` hook failure skips subsequent tests.
  This behavior can now be improved to only target tests affected by this hook.
2022-03-08 16:35:14 -08:00
..
html-reporter feat(html): put diff first in image comparison (#12254) 2022-02-22 11:29:58 -08:00
playwright chore: cut v1.20 branch (#12593) 2022-03-08 14:01:20 -08:00
playwright-chromium chore: cut v1.20 branch (#12593) 2022-03-08 14:01:20 -08:00
playwright-core chore: cut v1.20 branch (#12593) 2022-03-08 14:01:20 -08:00
playwright-firefox chore: cut v1.20 branch (#12593) 2022-03-08 14:01:20 -08:00
playwright-test reland(test runner): run hooks/modifiers as a part of the test (#12518) 2022-03-08 16:35:14 -08:00
playwright-webkit chore: cut v1.20 branch (#12593) 2022-03-08 14:01:20 -08:00
.eslintrc.js chore: don't write into stdout from the test runner, use reporters instead (#11367) 2022-01-12 19:52:40 -08:00