mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
add codecov to cucumber test runs, too.
This commit is contained in:
parent
44715f76d5
commit
281d591cc8
1 changed files with 15 additions and 1 deletions
|
@ -1,4 +1,18 @@
|
|||
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'
|
||||
|
||||
require 'rspec/expectations'
|
||||
|
|
Loading…
Reference in a new issue