Sha256: 4f1d4d3c272e9347e885a44f41017cfbe3accee1e3806062bf6a06c3d2cdf6c1

Contents?: true

Size: 658 Bytes

Versions: 2

Compression:

Stored size: 658 Bytes

Contents

# only load configured metrics
MetricFu.metrics.each { |task| import "#{File.dirname(__FILE__)}/#{task}.rake" }

namespace :metrics do
  if MetricFu.is_rails?

    desc "Generate coverage, cyclomatic complexity, flog, flay, railroad, reek, roodi, stats and churn reports"
    task :all => MetricFu.metrics

    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 => MetricFu.metrics

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
p8-metric_fu-0.9.0.3 lib/tasks/metric_fu.rake
p8-metric_fu-0.9.0.4 lib/tasks/metric_fu.rake