Commit 6b86da2c by lanrion

test coverall

parent 6abff1ea
...@@ -4,6 +4,7 @@ group :test do ...@@ -4,6 +4,7 @@ group :test do
gem "rspec", "~> 3.0.0.beta1" gem "rspec", "~> 3.0.0.beta1"
gem "redis-namespace", "~> 1.4.1" gem "redis-namespace", "~> 1.4.1"
if ENV["CI"] if ENV["CI"]
gem 'simplecov', :require => false
gem "codeclimate-test-reporter", require: nil gem "codeclimate-test-reporter", require: nil
gem 'coveralls', require: false gem 'coveralls', require: false
end end
......
...@@ -21,11 +21,19 @@ require "redis-namespace" ...@@ -21,11 +21,19 @@ require "redis-namespace"
if ENV["CI"] if ENV["CI"]
require 'coveralls' require 'coveralls'
Coveralls.wear! do require 'simplecov'
add_filter "spec" require "codeclimate-test-reporter"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter '/spec/'
minimum_coverage(99)
end end
require "codeclimate-test-reporter"
ENV['CODECLIMATE_REPO_TOKEN'] = "c91fecbbd9e414e7cc3ad7a7d99207145de0ac65a3368de09e8c19295343d399" ENV['CODECLIMATE_REPO_TOKEN'] = "c91fecbbd9e414e7cc3ad7a7d99207145de0ac65a3368de09e8c19295343d399"
CodeClimate::TestReporter.start CodeClimate::TestReporter.start
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment