0.0
The project is in a healthy, maintained state
capybara-dommy is a Capybara driver backed by Dommy and dommy-rack. It drives Rack/Rails apps through the Capybara DSL without a real browser or JavaScript, keeping the page as a Dommy::Document. RackTest-like, with HTML-level visibility.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 3.40
~> 0.8.0
~> 0.8.0
 Project Readme

Dommy

A pure-Ruby, browser-like DOM stack for testing Rack/Rails apps without a real browser. This repository is a monorepo containing the core library and its integration gems.

Gems

Gem Path Description
dommy gems/dommy happy-dom-style DOM polyfill in pure Ruby (Nokogiri/Nokolexbor backend).
dommy-rack gems/dommy-rack Rack-backed, browser-like session layer over a Dommy::Document.
capybara-dommy gems/capybara-dommy A Capybara driver backed by dommy and dommy-rack.

Each gem keeps its own gemspec, README, and test suite, and is released to RubyGems independently.

Note

dommy-js-quickjs (a QuickJS JavaScript backend) lives in its own repository because it depends on the native quickjs gem with a separate build/release cadence.

Development

A single root Gemfile resolves all gems from their local paths, so no path: overrides are needed:

bundle install

Running tests

# Every gem
bundle exec rake test

# A single gem
bundle exec rake test:dommy
bundle exec rake test:dommy-rack
bundle exec rake test:capybara-dommy

You can also run a gem's suite from its own directory:

cd gems/dommy && bundle exec rake

dommy and dommy-rack use Minitest; capybara-dommy uses RSpec (including the Capybara driver compliance suite).

Releasing

Build and push each gem from its own subdirectory:

cd gems/dommy && bundle exec rake release

License

MIT — see LICENSE.txt.