namespace :metrics do if MetricFu::RAILS desc "Generate coverage, cyclomatic complexity, flog, flay, railroad, reek, roodi, stats and churn reports" task :all => [:coverage, :stats, :saikuro, :churn, :flog, :flay, :railroad, :reek, :roodi] task :set_testing_env do RAILS_ENV = 'test' end desc "Generate metrics after migrating (for continuous integration)" task :all_with_migrate => [:set_testing_env, "db:migrate", :all] else desc "Generate coverage, cyclomatic complexity, flog, flay, railroad and churn reports" task :all => [:coverage, :saikuro, :churn, :flog, :flay, :railroad ] end end