1
0
Fork 0

Merge test coverage results

This commit is contained in:
Alex Kotov 2018-12-09 05:08:51 +05:00
parent 627bc0552a
commit 823f5d5386
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
4 changed files with 17 additions and 7 deletions

View File

@ -1,13 +1,10 @@
# frozen_string_literal: true
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter,
])
SimpleCov.start 'rails' do
merge_timeout 3600
formatter SimpleCov::Formatter::HTMLFormatter
add_group 'Channels', '/app/channels/'
add_group 'Interactors', '/app/interactors/'
add_group 'Policies', '/app/policies/'

View File

@ -23,3 +23,6 @@ before_script:
- psql -U postgres -c "CREATE DATABASE partynest_test;"
script: xvfb-run -a bundle exec rake
after_script:
- bundle exec rake coveralls:push

View File

@ -13,6 +13,13 @@ task lint: %i[rubocop bundler:audit brakeman]
desc 'Fix code style (rubocop --auto-correct)'
task fix: 'rubocop:auto_correct'
begin
require 'coveralls/rake/task'
Coveralls::RakeTask.new
rescue LoadError
nil
end
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new

View File

@ -4,6 +4,9 @@
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
# This should be on the top of the file.
require 'simplecov'
require 'cucumber/rails'
require 'capybara-screenshot/cucumber'