Menu

1 / 3

Introducing pytest-style fixtures into Ruby for smarter browser testing

DEV Community·Yusuke Iwaki·6 months ago
#84Dq8kWN
#why#rspec#playwright#browser#test
Reading 0:00
15s threshold

Why I built another Ruby test runner inspired by Playwright Test

Ruby already has great testing tools.

If you are building Rails applications today, you probably use one of these combinations:

RSpec + Capybara

Minitest + Capybara

Rails system tests

Maybe Selenium, Cuprite, Ferrum, or Playwright through Ruby bindings

These tools are mature, battle-tested, and widely used.

So the natural question is:

Why create yet another test runner?

That is exactly the question the Playwright team asked themselves when they created Playwright Test.

In the Playwright video that inspired this project, the speaker says they did not originally want to create another JavaScript testing framework. They tried existing frameworks such as Mocha and Jest, but those frameworks had historically been designed for unit testing.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.