playwright/tests/playwright-test
Andrey Lushnikov e57b4b5073
cherry-pick(#12070): fix: propagate exit code in experimental mode (#12133)
SHA: 5db7ce5964

In experimental ESM mode a child process is forked in order to run the tests. Currently the exit code of this child process is not propagated to the exit code of the parent process, which means that the process exits with a status code of `0` even if some of the tests failed.

This makes it difficult to use Playwright in CI in experimental mode, as the CI pipeline as a whole will pass despite the test failures.

This change addresses this by propagating the exit code in the case where it is non-zero.

Co-authored-by: pierscowburn <me@pierscowburn.com>
2022-02-15 13:25:14 -08:00
..
assets feat(test-runner): wait for a url before starting tests (#10138) 2022-01-26 16:32:58 -08:00
stable-test-runner chore: roll test runner to ToT (#11796) 2022-02-01 15:34:09 -08:00
access-data.spec.ts feat(test-runner): introduce attachments (#7685) 2021-07-16 13:48:37 -07:00
basic.spec.ts fix(test-fail): allow unhandled expects in test.fail (#11850) 2022-02-03 17:14:12 -08:00
blink-diff.spec.ts fix(test runner): show codeframe and location from the error top stack frame (#11179) 2022-01-04 16:00:55 -08:00
command-line-filter.spec.ts cherry-pick(#12004): chore: revert "fix(test-runner): escape backslashes in win cli" 2022-02-10 08:55:56 -08:00
config.spec.ts feat(test runner): replace declare/define with "options" (#10293) 2021-11-18 15:45:52 -08:00
exit-code.spec.ts chore: don't throw on no testDir (#11950) 2022-02-08 15:27:05 -08:00
expect-soft.spec.ts feat(test-runner): support expect.soft (#11800) 2022-02-02 18:33:51 -08:00
expect.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
fixture-errors.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
fixtures.spec.ts feat(test runner): replace declare/define with "options" (#10293) 2021-11-18 15:45:52 -08:00
gitignore.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
global-setup.spec.ts chore: allow opt-into the legacy global setup mode (#11888) 2022-02-07 10:41:56 -08:00
golden.spec.ts feat(test-runner): support expect.soft (#11800) 2022-02-02 18:33:51 -08:00
hooks.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
list-mode.spec.ts chore: add npm run lint-tests (#10252) 2021-11-11 13:27:50 -08:00
loader.spec.ts cherry-pick(#12070): fix: propagate exit code in experimental mode (#12133) 2022-02-15 13:25:14 -08:00
match-grep.spec.ts test(test-runner): add tests to show that grep is case insensitive (#8091) 2021-08-09 14:05:51 -04:00
max-failures.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
override-timeout.spec.ts test(test-runner): unflake override-timeout.spec.ts (#7869) 2021-07-29 13:34:46 -07:00
playwright-test-fixtures.ts cherry-pick(#11953): feat(debug): allow preprocessing JS scripts as well 2022-02-09 10:23:00 -08:00
playwright-test.config.ts test: default to one worker on CI for tests/playwright-test (#11618) 2022-01-25 10:11:44 -08:00
playwright.artifacts.spec.ts feat(test runner): save traces for beforeAll/afterAll hooks (#10950) 2021-12-15 16:06:10 -08:00
playwright.expect.misc.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
playwright.expect.text.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
playwright.expect.true.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
playwright.fetch.spec.ts test: add missing request tests (#9343) 2021-10-06 10:15:13 -07:00
playwright.spec.ts cherry-pick(#11984): fix(test-runner): fix browser initialization in test modifiers (#11992) 2022-02-09 15:35:36 -08:00
playwright.trace.spec.ts cherry-pick(#11954): respect tracing config for APIRequestContext (#11976) 2022-02-09 11:31:10 -08:00
playwright.unhandled.spec.ts fix: do not mute route handler exceptions (#11555) 2022-01-22 22:19:32 +01:00
repeat-each.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
reporter-attachment.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
reporter-base.spec.ts fix(reporter): do not report parallel tests as slow (#11921) 2022-02-07 20:10:13 -08:00
reporter-dot.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
reporter-github.spec.ts feat(test-runner): support expect.soft (#11800) 2022-02-02 18:33:51 -08:00
reporter-html.spec.ts fix(test-runner): respect source maps when reporting test files (#11770) 2022-02-01 13:04:54 -08:00
reporter-json.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
reporter-junit.spec.ts feat(html): unhide html reporter (#9512) 2021-10-14 11:17:35 -07:00
reporter-line.spec.ts cherry-pick(#12016): fix(reporters): correctly handle missing stdout.columns (#12033) 2022-02-11 08:58:13 -08:00
reporter-list.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
reporter-raw.spec.ts fix(test runner): fixture teardown double error, testInfo.attach() (#11365) 2022-01-13 10:38:47 -08:00
reporter.spec.ts fix(test-runner): respect source maps when reporting test files (#11770) 2022-02-01 13:04:54 -08:00
resolver.spec.ts fix(test runner): resolve tsconfig for each file (#11662) 2022-01-26 18:28:42 -08:00
retry.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
runner.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
shard.spec.ts fix(test runner): disallow use(workerFixture) in describes (#8119) 2021-08-10 16:32:32 -07:00
stdio.spec.ts fix(test runner): hide beforeAll/afterAll hooks from the reporter api (#11306) 2022-01-10 12:09:51 -08:00
test-extend.spec.ts feat(test runner): make _extendTest experimental (#11210) 2022-01-05 15:54:00 -08:00
test-ignore.spec.ts cherry-pick(#12004): chore: revert "fix(test-runner): escape backslashes in win cli" 2022-02-10 08:55:56 -08:00
test-info.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
test-modifiers.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
test-output-dir.spec.ts fix: typos (#11789) 2022-02-01 11:09:41 -08:00
test-parallel.spec.ts feat(parallel): allow setting enclosing scope parallel mode (#11822) 2022-02-02 20:44:11 -08:00
test-serial.spec.ts feat(parallel): allow setting enclosing scope parallel mode (#11822) 2022-02-02 20:44:11 -08:00
test-step.spec.ts fix(stack): hide test runner stack frames (#9735) 2021-10-25 11:49:59 -07:00
test-use.spec.ts feat(test runner): replace declare/define with "options" (#10293) 2021-11-18 15:45:52 -08:00
timeout.spec.ts fix(test runner): test.setTimeout whould not break debugging (#11004) 2021-12-17 15:17:48 -08:00
types-2.spec.ts feat(test runner): make _extendTest experimental (#11210) 2022-01-05 15:54:00 -08:00
types.spec.ts Revert "feat(test-runner): allow parametrized tests that don't extend base (#9301)" 2021-10-11 17:32:31 +02:00
web-server.spec.ts fix(webServer): do not set baseURL equal to webServer.url (#11951) 2022-02-08 15:57:36 -08:00
worker-index.spec.ts feat(test runner): introduce TestInfo.parallelIndex (#9762) 2021-11-01 10:37:34 -07:00