playwright/packages/playwright-test/src/reporters
Dmitry Gozman 47045ba48d
chore(test runner): run hooks/modifiers as a part of the test (#12329)
chore(test runner): run hooks/modifiers as a part of the test

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-02-28 11:42:47 -08:00
..
.eslintrc.json chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
base.ts fix(reporters): normalize usage of isTTY, env.CI and debug env variables (#12295) 2022-02-24 12:39:28 -08:00
dot.ts fix(reporters): move Running X tests using Y workers to reporters (#10014) 2021-11-03 11:17:23 -07:00
empty.ts chore: move test runner types into the playwright test package (#9472) 2021-10-14 11:55:08 +02:00
github.ts fix(test runner): show codeframe and location from the error top stack frame (#11179) 2022-01-04 16:00:55 -08:00
html.ts fix(reporters): normalize usage of isTTY, env.CI and debug env variables (#12295) 2022-02-24 12:39:28 -08:00
json.ts fix(test runner): hide beforeAll/afterAll hooks from the reporter api (#11306) 2022-01-10 12:09:51 -08:00
junit.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
line.ts chore(test runner): run hooks/modifiers as a part of the test (#12329) 2022-02-28 11:42:47 -08:00
list.ts fix(reporters): normalize usage of isTTY, env.CI and debug env variables (#12295) 2022-02-24 12:39:28 -08:00
multiplexer.ts feat(breaking): always report onBegin/onEnd, report file errors (#11758) 2022-01-31 17:09:04 -08:00
raw.ts feat(test-runner): support expect.soft (#11800) 2022-02-02 18:33:51 -08:00