mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Add require for code coverage libraries
Make sure we load `simplecov` and `codecov` when we find the right environment variables are present
This commit is contained in:
parent
3638c93b7d
commit
5d11ee6f06
1 changed files with 13 additions and 0 deletions
|
@ -2,6 +2,19 @@ require "bundler/setup"
|
|||
require "database_cleaner-core"
|
||||
require "byebug"
|
||||
|
||||
if ENV['COVERAGE'] == 'true'
|
||||
require "simplecov"
|
||||
|
||||
if ENV['CI'] == 'true'
|
||||
require 'codecov'
|
||||
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
||||
puts "required codecov"
|
||||
end
|
||||
|
||||
SimpleCov.start
|
||||
puts "required simplecov"
|
||||
end
|
||||
|
||||
RSpec.configure do |config|
|
||||
# These two settings work together to allow you to limit a spec run
|
||||
# to individual examples or groups you care about by tagging them with
|
||||
|
|
Loading…
Reference in a new issue