Set-up codeclimate test reporter

This commit is contained in:
Helge Rausch
2016-08-07 23:53:06 +02:00
parent a6f8b2c6fa
commit 0be0b76a3c
4 changed files with 11 additions and 3 deletions

View File

@@ -72,6 +72,7 @@ group :test do
gem 'capybara'
gem 'database_cleaner'
gem 'timecop'
gem 'codeclimate-test-reporter', require: false
end
group :development, :test do

View File

@@ -94,6 +94,8 @@ GEM
activesupport (>= 3.0)
cocaine (0.5.8)
climate_control (>= 0.0.3, < 1.0)
codeclimate-test-reporter (0.6.0)
simplecov (>= 0.7.1, < 1.0.0)
coderay (1.1.1)
commonjs (0.2.7)
composite_primary_keys (8.1.3)
@@ -330,9 +332,9 @@ GEM
redis (~> 3.2, >= 3.2.1)
sidekiq-limit_fetch (3.1.0)
sidekiq (>= 4)
simplecov (0.11.2)
simplecov (0.12.0)
docile (~> 1.1.0)
json (~> 1.8)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
sinatra (1.4.7)
@@ -399,6 +401,7 @@ DEPENDENCIES
bcrypt-ruby
capistrano (~> 2.0)
capybara
codeclimate-test-reporter
composite_primary_keys (~> 8.0)
database_cleaner
dotenv-rails

View File

@@ -1,4 +1,7 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
if ENV['CODECLIMATE_REPO_TOKEN']
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start
end
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'

View File

@@ -2,4 +2,5 @@ VCR.configure do |c|
c.cassette_library_dir = 'spec/vcr'
c.hook_into :webmock
c.configure_rspec_metadata!
c.ignore_hosts 'codeclimate.com'
end