0.0
No commit activity in last 3 years
No release in over 3 years
metric_fu includes for our spec_helper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

~> 4.9
= 0.9.0
 Project Readme

RspecMetricFu

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'rspec_metric_fu'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rspec_metric_fu

You will want to write a '.metrics' file with this content:

MetricFu::Configuration.run do |config|
  config.configure_metric(:rcov) do |rcov|
    rcov.coverage_file = MetricFu.run_path.join("coverage/rcov/rcov.txt")
    rcov.enable
    rcov.activate
  end
end

and add these lines to your 'spec/spec_helper.rb'

require 'rspec_metric_fu'
RspecMetricFu::Coverage.start

Usage

To get awesome metrics, first run:

bundle exec rspec

and then:

bundle exec metric_fu

Summary

Before and After

Contributing

  1. Fork it ( http://github.com//rspec_metric_fu/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request