add simplecov
This commit is contained in:
parent
8431d42a6a
commit
9de1aa67d4
|
@ -8,6 +8,7 @@
|
||||||
*.swp
|
*.swp
|
||||||
|
|
||||||
/public/uploads/*
|
/public/uploads/*
|
||||||
|
/coverage
|
||||||
|
|
||||||
/config/application.yml
|
/config/application.yml
|
||||||
/config/mongoid.yml
|
/config/mongoid.yml
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -61,6 +61,8 @@ group :test do
|
||||||
gem 'database_cleaner'
|
gem 'database_cleaner'
|
||||||
gem 'rspec-sidekiq'
|
gem 'rspec-sidekiq'
|
||||||
gem "codeclimate-test-reporter", group: :test, require: nil
|
gem "codeclimate-test-reporter", group: :test, require: nil
|
||||||
|
gem 'simplecov'
|
||||||
|
gem 'simplecov-console'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test, :development do
|
group :test, :development do
|
||||||
|
|
|
@ -44,6 +44,7 @@ GEM
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
addressable (2.5.2)
|
addressable (2.5.2)
|
||||||
public_suffix (>= 2.0.2, < 4.0)
|
public_suffix (>= 2.0.2, < 4.0)
|
||||||
|
ansi (1.5.0)
|
||||||
arel (9.0.0)
|
arel (9.0.0)
|
||||||
babel-source (5.8.35)
|
babel-source (5.8.35)
|
||||||
babel-transpiler (0.7.0)
|
babel-transpiler (0.7.0)
|
||||||
|
@ -130,6 +131,7 @@ GEM
|
||||||
guard (~> 2.1)
|
guard (~> 2.1)
|
||||||
guard-compat (~> 1.1)
|
guard-compat (~> 1.1)
|
||||||
rspec (>= 2.99.0, < 4.0)
|
rspec (>= 2.99.0, < 4.0)
|
||||||
|
hirb (0.7.3)
|
||||||
html_truncator (0.4.2)
|
html_truncator (0.4.2)
|
||||||
nokogiri (~> 1.5)
|
nokogiri (~> 1.5)
|
||||||
http-cookie (1.0.3)
|
http-cookie (1.0.3)
|
||||||
|
@ -303,6 +305,10 @@ GEM
|
||||||
docile (~> 1.1.0)
|
docile (~> 1.1.0)
|
||||||
json (>= 1.8, < 3)
|
json (>= 1.8, < 3)
|
||||||
simplecov-html (~> 0.10.0)
|
simplecov-html (~> 0.10.0)
|
||||||
|
simplecov-console (0.4.2)
|
||||||
|
ansi
|
||||||
|
hirb
|
||||||
|
simplecov
|
||||||
simplecov-html (0.10.2)
|
simplecov-html (0.10.2)
|
||||||
slim (3.0.9)
|
slim (3.0.9)
|
||||||
temple (>= 0.7.6, < 0.9)
|
temple (>= 0.7.6, < 0.9)
|
||||||
|
@ -396,6 +402,8 @@ DEPENDENCIES
|
||||||
sass-rails (~> 5.0)
|
sass-rails (~> 5.0)
|
||||||
sidekiq
|
sidekiq
|
||||||
simple_form (~> 4.0.0)
|
simple_form (~> 4.0.0)
|
||||||
|
simplecov
|
||||||
|
simplecov-console
|
||||||
slim-rails
|
slim-rails
|
||||||
spring
|
spring
|
||||||
spring-watcher-listen (~> 2.0.0)
|
spring-watcher-listen (~> 2.0.0)
|
||||||
|
|
|
@ -3,8 +3,13 @@ require File.expand_path('../../config/environment', __FILE__)
|
||||||
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'rspec/rails'
|
require 'rspec/rails'
|
||||||
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
require 'simplecov'
|
||||||
|
require 'simplecov-console'
|
||||||
|
|
||||||
|
SimpleCov.formatter = SimpleCov.formatter = SimpleCov::Formatter::Console
|
||||||
|
SimpleCov.start
|
||||||
|
|
||||||
|
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
||||||
ActiveRecord::Migration.maintain_test_schema!
|
ActiveRecord::Migration.maintain_test_schema!
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
|
|
Loading…
Reference in New Issue