robmitch / beagle

RSpec formatter to analyse your spec suite giving you a breakdown of how long your specs are taking to execute

Home Page:http://github.com/robmitch/beagle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Beagle

RSpec formatter to analyse your spec suite giving you a breakdown of how long your specs are taking to execute.

Install

gem install beagle

Usage

Add Beagle::TimedFormatter as a formatter to your rspec run, either from the command line or your rake task eg:

rspec spec/models/your_spec.rb -f Beagle::TimedFormatter

RSpec::Core::RakeTask.new(:spec => spec_prereq) do |t|
  t.pattern = "./spec/**/*_spec.rb"
  t.spec_opts = ["-f", "Beagle::TimedFormatter"]
end

Generates an html page under $PROJECT_ROOT/reports/beagle/index.html

About

RSpec formatter to analyse your spec suite giving you a breakdown of how long your specs are taking to execute

http://github.com/robmitch/beagle


Languages

Language:Ruby 100.0%