lib/tasks/metric_fu.rake in indirect-metric_fu-0.8.1 vs lib/tasks/metric_fu.rake in indirect-metric_fu-0.8.2
- old
+ new
@@ -1,16 +1,20 @@
namespace :metrics do
- task :prepare do
- RAILS_ENV = 'test'
- end
-
- desc "Useful for continuous integration"
- task :all_with_migrate => [:prepare, "db:migrate", :all]
-
if MetricFu::RAILS
- desc "Generate coverage, cyclomatic complexity, flog, stats, and churn reports"
- task :all => [:coverage, :saikuro, :flog, :churn, :stats]
+
+ 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, and churn reports"
- task :all => [:coverage, :saikuro, :flog, :churn]
+
+ desc "Generate coverage, cyclomatic complexity, flog, duplication and churn reports"
+ task :all => [:coverage, :saikuro, :churn, :flog, :flay]
+
end
end
\ No newline at end of file