No commit activity in last 3 years
No release in over 3 years
A RSpec 2.x formatter which shows longest time spec files.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 10.0

Runtime

~> 2.0
 Project Readme

RSpec::LongTimeSpecsProfiler

A RSpec 2.x formatter which shows longest time spec files.

This formatter works in only RSpec 2.x. RSpec 3.x is not supported.

Installation

Add this lines to your application's Gemfile:

group :test do
  gem 'rspec-long_time_specs_profiler'
end

And then execute:

$ bundle

Or install it yourself as:

$ gem install rspec-long_time_specs_profiler

Usage

Execute rspec command with -f RSpec::LongTimeSpecsProfiler option.

$ bundle exec rspec -f RSpec::LongTimeSpecsProfiler

After tests, 10 longest time spec files are shown in your console.

If you want to show progress, please specify -f progress option as follows.

$ bundle exec rspec -f progress -f RSpec::LongTimeSpecsProfiler

More than 10 files?

You can use --profile option which specifies how many files are shown in longest time spec files.

$ bundle exec rspec -f RSpec::LongTimeSpecsProfiler --profile 20

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ryu39/rspec-long_time_specs_profiler. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.