Eye candy for RSpec: beautiful progress bars and coverage reports.
- TTY Progress Bar - Rich progress bar with ETA, rate, and percentage
- Colored Output - Green for pass, red for fail, yellow for pending
- Coverage Table - Automatically displays if SimpleCov data exists
- Non-TTY Fallback - Dots/characters when not in a terminal
Add to your Gemfile:
group :test do
gem "rspec-candy"
endThen:
bundle installAdd to .rspec:
--require rspec/candy
--format RSpec::Candy::Formatter
Then just run:
bundle exec rspecYou get a progress bar, test results, and coverage table (if SimpleCov is configured) - all in one.
Running 42 examples...
[██████████████████████████████████████░░░░░░░░░░] 38/42 90% │ 00:01
✓ 42 examples, 0 failures
Finished in 0.73s
┌─────────────┬────────┬────────────────┬───────┐
│ File │ Lines │ Coverage │ % │
├─────────────┼────────┼────────────────┼───────┤
│ cli.rb │ 85/100 │ █████████████░ │ 85.0% │
│ builder.rb │ 38/50 │ ███████████░░░ │ 76.0% │
│ remote.rb │ 22/40 │ ████████░░░░░░ │ 55.0% │
└─────────────┴────────┴────────────────┴───────┘
Total: 145/190 (76.3%)
4 files at 100% (not shown)
- Ruby >= 3.2.0
- RSpec >= 3.0
- SimpleCov (for coverage reports)
MIT License. See LICENSE.txt.