Sha256: 3934d36ccda13759c7da89f60dd203e422f32ad8aff3c80d734805af164ac29a

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

# Add the gem's lib folder to the load path
$:.unshift File.expand_path('../../lib', __FILE__)


# Set-up coverage reporting (local and Coveralls.com)
require 'simplecov'
require 'coveralls'
SimpleCov.command_name 'MiniTest'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
  add_filter '/test/'
  
  add_group 'Core', 'lib/aviator/core'
  add_group 'OpenStack', 'lib/aviator/openstack'
end

require 'minitest/autorun'

# Do not require these gems when running in the CI
unless ENV['CI'] || ENV['TRAVIS']
  require 'pry'
end

# Clean the tmp dir of log files
Dir[Pathname.new(__FILE__).expand_path.join('..', '..', 'tmp', '*.log')].each { |f| File.delete(f) }

# Make sure this loads first
require Pathname.new(__FILE__).join('..', 'support', 'test_base_class.rb').expand_path

# Load all helpers in test/support
Dir[Pathname.new(__FILE__).join('..', 'support', '*.rb')].each do |f|
  require f
end

require 'aviator'
require 'aviator/core/cli'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aviator-0.0.3 test/test_helper.rb