Permalink
Browse files

metrics

  • Loading branch information...
1 parent b73e829 commit 7bad35f11e075cf97b6e4607fff9f3a3e0574dc8 Gilson Ferraz committed Aug 31, 2011
Showing with 20 additions and 1 deletion.
  1. +8 −0 .metrics
  2. +12 −1 test/test_helper.rb
View
@@ -0,0 +1,8 @@
+
+MetricFu::Configuration.run do |config|
+ config.graphs = [:flog, :flay, :stats]
+ #config.graph_engine = :gchart
+ config.metrics = [:churn, :flog, :flay, :rcov, :reek, :roodi]
+ config.rcov[:external] = 'coverage/rcov/rcov.txt'
+end
+
View
@@ -1,12 +1,23 @@
gem 'minitest'
-require 'simplecov'
+require 'simplecov' # Must be included 1st
require 'minitest/autorun'
require 'purdytest'
+require 'simplecov-rcov-text'
+
+class SimpleCov::Formatter::MergedFormatter
+ def format(result)
+ SimpleCov::Formatter::HTMLFormatter.new.format(result)
+ SimpleCov::Formatter::RcovTextFormatter.new.format(result)
+ end
+end
+
+# SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter
SimpleCov.start do
add_filter '/test/'
+ formatter = SimpleCov::Formatter::MergedFormatter
end

0 comments on commit 7bad35f

Please sign in to comment.