question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jest Playwright vs Playwright Runner

See original GitHub issue

So going forward, I do think Jest Playwright has its place and I am unlikely to change. The reason is, that as far as I understood Playwright Runner, it does not use Jest to launch tests. I deducted this from a comment from the developer of Jest Runner, which stated that it does not run in a vm jescontext. Which Jest does.

If Playwright Runner does not run with Jest as the actual test Runner, it looses a lot of its luster to me. This is because Jest has so many nice built-in functionalities that Playwright Runner could never keep up with. Which this project gets for free since it rides upon Jest. As an example, the various reporters, ways to run tests, to hook into via handleEvent, to run both unit and e2e tests with the same tool. I think the last point is my strongest; It means developers in a team only have to learn one CLI to run tests instead of two. Any project is bound to have a lot of complexity and the more it can be reduced, the better and the faster development.

Now, maybe I misunderstood Playwright Runner completely as I did not spend time reading the code or running it, and the docs are not updated yet properly. But I thought it’d be interesting to start a discussion about this here to see what the thoughts are from @mmarkelov and @mxschmitt who are the maintainers of this repo and its utils.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
mmarkelovcommented, May 18, 2020

@thernstig yeah! I agree with @mxschmitt that it’s very difficult to make comparison right now. playwright-runner may be a good solution, when it will be ready. For now I don’t have any plans about stopping maintain this library. We should wait until the playwright-runner will be ready. And then we could make decisions about future.

2reactions
mxschmittcommented, May 18, 2020

I would not make a comparison until playwright-runner is not fully ready.

Differences in my mind (@mmarkelov please add more / feel free to edit):

  • jest-playwright: has support for custom launch/context options
  • playwright-runner: native support for TypeScript
  • jest-playwright needs e.g. jest-ts
  • both have support for multiple browsers
  • both are based on the Jest runner API
  • playwright-runner will get his page object via the callback parameters. jest-playwright uses globals for that.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest vs Playwright : r/QualityAssurance - Reddit
Go playwright test runner, which really is a wrapper over jest. You get videos, retry, tracing without having to go to other packages....
Read more >
What are the pros and cons of Playwright-test VS jest ...
I would recommend Playwright Test, because. it works without other external dependencies; has support for TypeScript out of the box ...
Read more >
Playwright + Jest - Quality Thoughts
Playwright offers automatic waiting and a nice API, whilst Jest offers a solid runner with parallel support, automatic retries and the ability ...
Read more >
Third party runners | Playwright
Playwright Test is our first-party recommended test runner to be used ... Mocha looks very similar to the Jest/Jasmine setup, and functions in...
Read more >
Using Jest with Playwright
If you want to setup custom browsers, devices, screen resolutions or other launch settings for Playwright, then you need a custom Playwright ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found