0.0
The project is in a healthy, maintained state
Reports RSpec suite progress and outcomes through OSC 7501.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

rspec-osc7501

Report RSpec suite progress and results to terminals that support OSC 7501. Requires MRI Ruby 2.1 or newer and rspec-core >= 3.6.

Install

group :test do
  gem "rspec"
  gem "rspec-osc7501", "~> 0.1"
end

Run your specs in a terminal that supports OSC 7501:

bundle exec rspec --require rspec/osc7501 \
  --format progress --format RSpec::OSC7501::Formatter

Keep --format progress to see RSpec's dots and summary. Requiring rspec/osc7501 registers the formatter without selecting it.

Reporting also sets the terminal title. While examples run, the title is rspec › <current example>. The title returns to rspec on completion, failure, and interruption. Titles are sanitized and capped at 512 bytes including the rspec › prefix.

Configure

Environment variable Values Default
RSPEC_OSC7501 auto emits to a TTY unless TERM=dumb, off disables output, force overrides both checks auto
RSPEC_OSC7501_TITLE Title for the suite's status records RSpec

Documentation

Licensed under Apache License 2.0.