capybara-inline-screenshot

Extends capybara-screenshot with inline image output.

If CI environment variable is not present it will output screenshots in base64 encoded iTerm2 image format, and if CI is present it will output in the Terminal artifact:// format.

In iTerm2 (nightly):

Screenshot of iTerm2

In Buildkite:

Screenshot of Buildkite

Usage

Add it to your Gemfile (after capybara-screenshot):

gem 'capybara-inline-screenshot'

And replace your call to:

require 'capybara/screenshot/rspec'

with:

require 'capybara-inline-screenshot/rspec'

License

See the LICENSE file for license rights and limitations (MIT).