* trying rcov formatter for jenkins integration (VRFS-1103)

This commit is contained in:
Seth Call 2014-02-13 21:17:47 +00:00
parent d20713144e
commit b534a1e757
3 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,15 @@
if ENV['COVERAGE'] == "1" if ENV['COVERAGE'] == "1"
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 SimpleCov.start do
add_filter "/test/" add_filter "/test/"
add_filter "/bin/" add_filter "/bin/"

View File

@ -44,6 +44,7 @@ gem 'builder'
group :test do group :test do
gem 'simplecov', '~> 0.7.1' gem 'simplecov', '~> 0.7.1'
gem 'simplecov-rcov'
gem 'factory_girl', '4.1.0' gem 'factory_girl', '4.1.0'
gem "rspec", "2.11" gem "rspec", "2.11"
gem 'spork', '0.9.0' gem 'spork', '0.9.0'

View File

@ -115,7 +115,6 @@
"JK.RecordingManagerCommandProgress", "JK.RecordingManagerCommandProgress",
"JK.RecordingManagerCommandStop", "JK.RecordingManagerCommandStop",
"JK.RecordingManagerCommandsChanged" "JK.RecordingManagerCommandsChanged"
) )
return this; return this;