README in p8-metric_fu-0.8.4.10 vs README in p8-metric_fu-0.8.4.11
- old
+ new
@@ -48,17 +48,19 @@
Which will check for updates every 24 hours and run all the metrics rake tasks (migrating your test db first). The output will be visible from an individual build's detail page.
****Notes on configuration****
MetricFu::Configuration.run do |config|
- config.open_in_browser = false # Don't open reports in the browser on a mac
+ #define which metrics you want to use
+ config.metrics = [:coverage, :flog]
+ # Don't open reports in the browser on a mac
+ config.open_in_browser = false
config.churn_options = { :start_date => lambda{ 3.months.ago } }
config.coverage_options = { :test_files => ['test/**/test_*.rb'] }
config.flog_options = { :dirs_to_flog => ['cms/app', 'cms/lib'] }
config.flay_options = { :dirs_to_flay => ['cms/app', 'cms/lib'] }
config.saikuro_options = { "--warn_cyclo" => "3", "--error_cyclo" => "4" }
- config.open_in_browser = false # Don't open reports in the browser on a mac
- ...
+
end
****Notes on metrics:coverage****
When creating a coverage report, metric_fu runs all the tests in the test folder and specs in spec folder using Rcov.