mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-18 01:39:01 +00:00
Set-up codeclimate test reporter
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user