Skip to content

Instantly share code, notes, and snippets.

@dkln
Created December 1, 2010 15:41
Show Gist options
  • Save dkln/723652 to your computer and use it in GitHub Desktop.
Save dkln/723652 to your computer and use it in GitHub Desktop.
Including cucumber stories in your metric_fu Rcov reports
# .metrics
cucumber_path = `which cucumber`.strip
MetricFu::Configuration.run do |config|
config.rcov[:rcov_opts] << '--aggregate tmp/metric_fu/scratch/rcov/coverage.data'
config.rcov[:rcov_opts] << '&&'
config.rcov[:rcov_opts] << "rcov #{cucumber_path}"
config.rcov[:rcov_opts] << '--no-html'
config.rcov[:rcov_opts] << '--text-coverage'
config.rcov[:rcov_opts] << '--no-color'
config.rcov[:rcov_opts] << '--rails'
config.rcov[:rcov_opts] << '--exclude /.gem/,/gems/,/Library/,spec,vendor,features/*'
config.rcov[:rcov_opts] << '--aggregate tmp/metric_fu/scratch/rcov/coverage.data'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment