* trying rcov formatter for jenkins integration (VRFS-1103)
This commit is contained in:
parent
d20713144e
commit
b534a1e757
|
|
@ -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/"
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,6 @@
|
||||||
"JK.RecordingManagerCommandProgress",
|
"JK.RecordingManagerCommandProgress",
|
||||||
"JK.RecordingManagerCommandStop",
|
"JK.RecordingManagerCommandStop",
|
||||||
"JK.RecordingManagerCommandsChanged"
|
"JK.RecordingManagerCommandsChanged"
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue