Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix codecov inconsistencies #837

Merged
merged 11 commits into from Jul 17, 2019
2 changes: 1 addition & 1 deletion .codecov.yml
Expand Up @@ -7,5 +7,5 @@ comment:
branches: null # branch names that can post comment
coverage:
status:
project: off #turned off due to inconsistencies in reporting
project: on
patch: on
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -42,6 +42,6 @@ todo.txt
.sass-cache
.byebug_history
coverage_report/
test/reports/*
test/reports/
yarn-error.log
yarn.lock
9 changes: 0 additions & 9 deletions .simplecov
@@ -1,12 +1,3 @@
SimpleCov.start

if ENV['CI'] == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
else
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
end

SimpleCov.start 'rails' do
add_group 'Units', 'app/models'
add_group 'Functionals', 'app/controllers'
Expand Down
4 changes: 4 additions & 0 deletions test/test_helper.rb
@@ -1,5 +1,9 @@

require 'simplecov'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
SimpleCov.start

require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'minitest/reporters'
Expand Down