Sha256: 14d164cca6817ec1a11f6ff116520692f3c88da53657af6f859825f3b34210a3

Contents?: true

Size: 584 Bytes

Versions: 4

Compression:

Stored size: 584 Bytes

Contents

namespace :metrics do
  if MetricFu::RAILS

    desc "Generate coverage, cyclomatic complexity, flog, stats, duplication and churn reports"
    task :all => [:coverage, :stats, :saikuro, :churn, :flog, :flay]

    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, duplication and churn reports"
    task :all => [:coverage, :saikuro, :churn, :flog, :flay]

  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
indirect-metric_fu-0.8.2 lib/tasks/metric_fu.rake
p8-metric_fu-0.8.2 lib/tasks/metric_fu.rake
p8-metric_fu-0.8.3 lib/tasks/metric_fu.rake
p8-metric_fu-0.8.4 lib/tasks/metric_fu.rake