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"
endRun your specs in a terminal that supports OSC 7501:
bundle exec rspec --require rspec/osc7501 \
--format progress --format RSpec::OSC7501::FormatterKeep --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
- Usage recipes: persistent configuration and output routing.
- Behavior and limits: terminal states and concurrency.
- Contributing, accessibility, security, code of conduct, changelog
Licensed under Apache License 2.0.