test/test_helper.rb in gaptool-server-0.7.0 vs test/test_helper.rb in gaptool-server-0.7.1
- old
+ new
@@ -1,7 +1,16 @@
ENV['RACK_ENV'] = 'test'
if ENV['COVERAGE']
require 'simplecov'
+ require 'simplecov-rcov'
+
+ class SimpleCov::Formatter::MergedFormatter
+ def format(result)
+ SimpleCov::Formatter::HTMLFormatter.new.format(result)
+ SimpleCov::Formatter::RcovFormatter.new.format(result)
+ end
+ end
+ SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter
SimpleCov.start do
add_filter '/test/'
add_group 'helpers', 'lib/helpers'
end
end