Merge test coverage results
This commit is contained in:
parent
627bc0552a
commit
823f5d5386
4 changed files with 17 additions and 7 deletions
11
.simplecov
11
.simplecov
|
@ -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/'
|
||||
|
|
|
@ -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
|
||||
|
|
7
Rakefile
7
Rakefile
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
Reference in a new issue