microsoft / microsoft/playwright

[Feature] expose @playwright/test runner API

Open
#7,275 24 comments 75 reactions 1 assignee View on GitHub

@dgozman is already working on this.

Since Jun 28, 2021.

feature-test-runner P3-collecting-feedback
Dominant language
TypeScript
Stars
96.3k
Forks
6.5k
Avg merge
1d 6h
Merged PRs (30d)
180

Description

We're currently using jest as a test runner for testing angular applications using playwright. In the angular ecosystem tools usually integrate with the `@angular/cli` by providing a builder, so our `@ngx-playwright/jest` package is actually what powers the `ng e2e` command in our repositories.

It would be great if we could write such an integration for the `@playwright/test` runner as well, but that'd require access to the runner APIs.
While it would be possible to execute the playwright CLI in a new process, this would make certain integrations harder or hacky. For instance passing configuration from the angular.json into the test runner would require turning those into CLI arguments and passing the base URL the angular app is hosted at into the runner would require a workaround using the child process's environment to pass this along.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.