diff options
| author | jpl | 2016-07-11 16:46:11 +0200 |
|---|---|---|
| committer | jpl | 2016-07-11 16:46:11 +0200 |
| commit | b4f00866daa27bd6bbbafe62c2bc32d5914733c6 (patch) | |
| tree | 5b2449296268815e5e32ece9748281093be0b727 | |
| parent | 7981bde6d8c530a2399bef3c5c247be3b5568c1c (diff) | |
| download | chouette-core-b4f00866daa27bd6bbbafe62c2bc32d5914733c6.tar.bz2 | |
Refs #1291: adding simplecov for jenkins
| -rw-r--r-- | spec/spec_helper.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 92afd410b..47cefaedf 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -11,10 +11,17 @@ require 'capybara/poltergeist' require 'georuby-ext' require 'will_paginate/array' require 'fakeweb' + require 'simplecov' -SimpleCov.start 'rails' do - add_filter "/.bundle" + +if ENV['JOB_NAME'] + require 'simplecov-rcov' + SimpleCov.formatters = [ + SimpleCov::Formatter::HTMLFormatter, + SimpleCov::Formatter::RcovFormatter + ] end +SimpleCov.start 'rails' # Requires supporting ruby files with custom matchers and macros, etc, in # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are |
