diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 13:25:32 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 13:25:32 +1100 |
commit | 4fd235d470c7e0055044d3926736c1afaa9cfb40 (patch) | |
tree | 46f65d8cea2a9f1f90ef291201702da51969c4d4 | |
parent | e155afcf4acae378933f7a408aad3742177a7463 (diff) |
Run local coverage tests as well as those on coveralls.io and exclude plugins and commonlib directories
-rw-r--r-- | spec/spec_helper.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2a6f4b561..f41f7aeb2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,15 @@ +require 'simplecov' require 'coveralls' -Coveralls.wear! + +# Generate coverage locally in html as well as in coveralls.io +SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter +] +SimpleCov.start('rails') do + add_filter 'commonlib' + add_filter 'vendor/plugins' +end # This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. |