0.0
The project is in a healthy, maintained state
Take snapshots of UI during testing for inspection in a browser.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 2.2, < 4
 Project Readme

Snapshot UI

Take snapshots of responses in integration tests and view them in a browser.

This repository develops two Ruby gems together:

  • snapshot_ui — the Rack-agnostic core, web interface, and minitest integration.
  • snapshot_ui-rails — automatic Rails configuration, routing, test helpers, and mail snapshots.

Development

bin/setup
bundle exec rake

Build and verify both packaged gems with:

bundle exec rake gems:verify

Using an unreleased version

Because each gemspec lives below gems/, use Bundler's glob: option when installing directly from Git:

gem "snapshot_ui",
  git: "https://github.com/tomazzlender/snapshot_ui",
  glob: "gems/snapshot_ui/*.gemspec"

For the Rails integration, let Bundler discover both the adapter and its local core dependency:

gem "snapshot_ui-rails",
  git: "https://github.com/tomazzlender/snapshot_ui",
  glob: "gems/*/*.gemspec"

License

Released under the MIT License.