Commit 6b86da2c by lanrion

test coverall

parent 6abff1ea
......@@ -4,6 +4,7 @@ group :test do
gem "rspec", "~> 3.0.0.beta1"
gem "redis-namespace", "~> 1.4.1"
if ENV["CI"]
gem 'simplecov', :require => false
gem "codeclimate-test-reporter", require: nil
gem 'coveralls', require: false
end
......
......@@ -21,11 +21,19 @@ require "redis-namespace"
if ENV["CI"]
require 'coveralls'
Coveralls.wear! do
add_filter "spec"
require 'simplecov'
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
require "codeclimate-test-reporter"
ENV['CODECLIMATE_REPO_TOKEN'] = "c91fecbbd9e414e7cc3ad7a7d99207145de0ac65a3368de09e8c19295343d399"
CodeClimate::TestReporter.start
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