No commit activity in last 3 years
No release in over 3 years
When you run individual specs, I want to see documentation output, because it shows better which specs fails. But when I run all my specs I want something like progress or Fuubar.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

RSpec Smart Formatter

Build Status

RSpec Smart Formatter automatically chooses an appropriate formatter depending on the amount of specs you're running.

Why this formatter exists

This gem is for scratching an itch I have. When I run focussed tests (like, only one file, or only one example group) I want to use the documentation formatter, which gives me a better view of which tests pass and which tests fail.

When I run a lot of tests, I want something that doesn't fill my entire bash history and just shows the list of specs.

I like formatters like Instafail and Fuubar, which easily handles thousands of tests, without cluttering your terminal, and showing you the failing specs instantly so you can figure out what went wrong without having to wait for your whole suite to finish.

I could write -fd and -fp manually, but I keep forgetting that.

Installation

Add to your gemfile:

group :test do
  gem 'rspec-smart-formatter', :require => false
end

Run bundle install

Add it your .rspec file:

--format RSpec::Smart::Formatter

And you're done!

Usage

Just run RSpec as you normally would.

For explaination on how the smart formatter works, see this feature.

Configuration

Don't know yet. Still working on it.

Development

To run the specs of rspec-smart-formatter itself:

bundle install
rspec

PS. Don't run with bundle exec.

Pull requests are welcome.

Copyright

Copyright 2012, Iain Hecker. Released under the MIT License.