use CodeClimate for code coverage

did committed Feb 03, 2015
commit 6eea3265a6ec99ca79eaa2cad3c7f8144eb4455f
Showing 3 changed files with 15 additions and 8 deletions
Gemfile +2 -2
@@ @@ -18,9 +18,9 @@ group :test do
gem 'pry'
+ gem 'codeclimate-test-reporter', require: false
# gem 'coveralls', require: false
- # gem 'codeclimate-test-reporter', require: nil
- gem 'simplecov', require: false
+ # gem 'simplecov', require: false
end
# platform :jruby do
Gemfile.lock +3 -1
@@ @@ -48,6 +48,8 @@ GEM
addressable (2.3.6)
builder (3.2.2)
chunky_png (1.3.3)
+ codeclimate-test-reporter (0.4.6)
+ simplecov (>= 0.7.1, < 1.0.0)
coderay (1.1.0)
coffee-script (2.3.0)
coffee-script-source
@@ @@ -172,10 +174,10 @@ PLATFORMS
DEPENDENCIES
bundler (~> 1.7)
+ codeclimate-test-reporter
i18n-spec (~> 0.6.0)
json_spec (~> 1.1.4)
locomotivecms_steam!
pry
rake (~> 10.4.2)
rspec (~> 3.1.0)
- simplecov
spec/spec_helper.rb +10 -5
@@ @@ -1,8 +1,12 @@
- # require 'codeclimate-test-reporter'
- # CodeClimate::TestReporter.start
+ require 'codeclimate-test-reporter'
require 'simplecov'
SimpleCov.start do
+ formatter SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ CodeClimate::TestReporter::Formatter
+ ]
+
add_filter 'spec/'
add_group "Liquid Filters", "lib/locomotive/steam/liquid/filters"
@@ @@ -11,14 +15,15 @@ SimpleCov.start do
add_group "Services", "lib/locomotive/steam/services"
end
+ # disabled for now
+ # require 'coveralls'
+ # Coveralls.wear!
+
require 'rubygems'
require 'bundler/setup'
require 'i18n-spec'
- # require 'coveralls'
- # Coveralls.wear!
-
require File.join(File.dirname(__FILE__), '../lib/locomotive/steam/repositories')
require_relative '../lib/locomotive/steam'