mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
18 lines
362 B
Ruby
18 lines
362 B
Ruby
require 'rspec/expectations'
|
|
|
|
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
|
|
|
|
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
|
|
require 'database_cleaner-core'
|
|
|