Created
December 1, 2010 15:41
-
-
Save dkln/723652 to your computer and use it in GitHub Desktop.
Including cucumber stories in your metric_fu Rcov reports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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