Skip to content

About

RSpec formatter for OSC 7501 terminal program status

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

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.

About

RSpec formatter for OSC 7501 terminal program status

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages