# mattheworiordan/capybara-screenshot

Automatically save screen shots when a Capybara scenario fails

Repository: https://github.com/mattheworiordan/capybara-screenshot
Canonical: https://ross.abutalabs.com/products/capybara-screenshot
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-02-25T00:19:53+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 8, longevity 100
- inputs: {"age_days": 5439, "days_push": 190, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1022, forks 168 (observed 2026-08-28T04:03:15.950268+00:00)

## What it is
A Ruby gem that automatically captures screenshots and HTML snapshots of the page whenever a Capybara-driven test fails in Cucumber, RSpec, or Minitest suites. It saves these artifacts to tmp/capybara to help developers quickly diagnose failing browser-based integration tests.

## Use cases
- capture screenshots on failing capybara tests
- debug failing cucumber steps with screenshots
- save html of failed page in rspec feature specs
- automatically screenshot test failures in minitest
- diagnose selenium test failures visually
- capture page state when capybara scenario fails

## When to choose
- you use Capybara with Cucumber, RSpec, or Minitest and want automatic failure screenshots
- you debug flaky or failing browser integration tests and need the page state at failure time
- you want both a screenshot and the HTML source of the failed page saved automatically

## When to avoid
- you don't use Capybara or Ruby for your test suite
- you need screenshots on passing tests or continuous visual regression testing rather than failure capture
- your driver is not supported (e.g. not Selenium, capybara-webkit, poltergeist, or cuprite)

## Facets
- artifact type: library
- maturity: active
- function: testing, e2e-testing
- domain: testing, web-development, developer-tools
- platform: ruby, cli
- tags: capybara, screenshot, test-failures, rspec, cucumber, minitest, selenium, ruby-gem

## Member repositories
- mattheworiordan/capybara-screenshot (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:15.950268+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:08:44.959020+00:00, confidence not recorded.
  - readme: https://github.com/mattheworiordan/capybara-screenshot (fetched 2026-08-28T04:03:15.950268+00:00, sha 15b522f997ed)
- Data as of 2026-08-30T08:39:29.467469+00:00.
