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
Contributing
- Fork it ( http://github.com//rspec_metric_fu/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request