Merge pull request #120 from houdiniproject/fix_test_coverage
Fix test coverage
This commit is contained in:
commit
0d4786427a
5 changed files with 15 additions and 11 deletions
2
Gemfile
2
Gemfile
|
@ -129,10 +129,10 @@ group :development, :ci, :test do
|
||||||
gem 'factory_bot'
|
gem 'factory_bot'
|
||||||
gem 'factory_bot_rails'
|
gem 'factory_bot_rails'
|
||||||
gem 'action_mailer_matchers'
|
gem 'action_mailer_matchers'
|
||||||
|
gem 'simplecov', '~> 0.16.1', require: false
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem 'codecov', require: false
|
|
||||||
gem 'vcr'
|
gem 'vcr'
|
||||||
gem 'webmock'
|
gem 'webmock'
|
||||||
end
|
end
|
||||||
|
|
15
Gemfile.lock
15
Gemfile.lock
|
@ -112,10 +112,6 @@ GEM
|
||||||
aws-sdk (~> 1.58)
|
aws-sdk (~> 1.58)
|
||||||
carrierwave (~> 0.7)
|
carrierwave (~> 0.7)
|
||||||
chronic (0.10.2)
|
chronic (0.10.2)
|
||||||
codecov (0.1.5)
|
|
||||||
json
|
|
||||||
simplecov
|
|
||||||
url
|
|
||||||
coderay (1.1.2)
|
coderay (1.1.2)
|
||||||
coercible (1.0.0)
|
coercible (1.0.0)
|
||||||
descendants_tracker (~> 0.0.1)
|
descendants_tracker (~> 0.0.1)
|
||||||
|
@ -159,7 +155,7 @@ GEM
|
||||||
devise-async (0.9.0)
|
devise-async (0.9.0)
|
||||||
devise (~> 3.2)
|
devise (~> 3.2)
|
||||||
diff-lcs (1.2.5)
|
diff-lcs (1.2.5)
|
||||||
docile (1.1.5)
|
docile (1.3.1)
|
||||||
domain_name (0.5.20160615)
|
domain_name (0.5.20160615)
|
||||||
unf (>= 0.0.5, < 1.0.0)
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
dotenv (2.0.1)
|
dotenv (2.0.1)
|
||||||
|
@ -389,11 +385,11 @@ GEM
|
||||||
railties (~> 3.2.0)
|
railties (~> 3.2.0)
|
||||||
sass (>= 3.1.10)
|
sass (>= 3.1.10)
|
||||||
tilt (~> 1.3)
|
tilt (~> 1.3)
|
||||||
simplecov (0.12.0)
|
simplecov (0.16.1)
|
||||||
docile (~> 1.1.0)
|
docile (~> 1.1)
|
||||||
json (>= 1.8, < 3)
|
json (>= 1.8, < 3)
|
||||||
simplecov-html (~> 0.10.0)
|
simplecov-html (~> 0.10.0)
|
||||||
simplecov-html (0.10.0)
|
simplecov-html (0.10.2)
|
||||||
sixarm_ruby_unaccent (1.2.0)
|
sixarm_ruby_unaccent (1.2.0)
|
||||||
sprockets (2.2.3)
|
sprockets (2.2.3)
|
||||||
hike (~> 1.2)
|
hike (~> 1.2)
|
||||||
|
@ -426,7 +422,6 @@ GEM
|
||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.7.2)
|
unf_ext (0.0.7.2)
|
||||||
unicode_utils (1.4.0)
|
unicode_utils (1.4.0)
|
||||||
url (0.3.2)
|
|
||||||
vcr (2.9.3)
|
vcr (2.9.3)
|
||||||
virtus (1.0.5)
|
virtus (1.0.5)
|
||||||
axiom-types (~> 0.1)
|
axiom-types (~> 0.1)
|
||||||
|
@ -455,7 +450,6 @@ DEPENDENCIES
|
||||||
carrierwave
|
carrierwave
|
||||||
carrierwave-aws
|
carrierwave-aws
|
||||||
chronic
|
chronic
|
||||||
codecov
|
|
||||||
colorize
|
colorize
|
||||||
config (> 1.5)
|
config (> 1.5)
|
||||||
countries
|
countries
|
||||||
|
@ -513,6 +507,7 @@ DEPENDENCIES
|
||||||
ruby-prof (= 0.15.9)
|
ruby-prof (= 0.15.9)
|
||||||
sass (= 3.2.19)
|
sass (= 3.2.19)
|
||||||
sass-rails (= 3.2.6)
|
sass-rails (= 3.2.6)
|
||||||
|
simplecov (~> 0.16.1)
|
||||||
sprockets
|
sprockets
|
||||||
stripe
|
stripe
|
||||||
stripe-ruby-mock (~> 2.4.1)!
|
stripe-ruby-mock (~> 2.4.1)!
|
||||||
|
|
|
@ -23,6 +23,8 @@ COPY Gemfile.lock /myapp/Gemfile.lock
|
||||||
RUN bundle install
|
RUN bundle install
|
||||||
RUN chown -R $USER /myapp/Gemfile
|
RUN chown -R $USER /myapp/Gemfile
|
||||||
RUN chgrp -R $USER /myapp/Gemfile.lock
|
RUN chgrp -R $USER /myapp/Gemfile.lock
|
||||||
|
RUN chown -R $USER /usr/local/bundle
|
||||||
|
RUN chgrp -R $USER /usr/local/bundle
|
||||||
USER $USER
|
USER $USER
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
CMD foreman start
|
CMD foreman start
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
||||||
|
if ENV['RAILS_ENV'] == 'test'
|
||||||
|
require 'simplecov'
|
||||||
|
SimpleCov.start 'rails'
|
||||||
|
puts "required simplecov"
|
||||||
|
end
|
||||||
|
|
||||||
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
||||||
require File.expand_path('../../config/boot', __FILE__)
|
require File.expand_path('../../config/boot', __FILE__)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
require 'simplecov'
|
||||||
|
SimpleCov.start
|
||||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||||
ENV['RAILS_ENV'] ||= 'test'
|
ENV['RAILS_ENV'] ||= 'test'
|
||||||
|
|
Loading…
Reference in a new issue