Skip to content

mobileeventguide/rspec_metric_fu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

metric_fu includes for our spec_helper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages