mirror of https://github.com/reiseburo/hermann
33 lines
900 B
Ruby
33 lines
900 B
Ruby
require 'rubygems'
|
|
require 'yaml'
|
|
require 'rspec'
|
|
|
|
require 'simplecov'
|
|
require 'simplecov-rcov'
|
|
|
|
SimpleCov.start do
|
|
formatter = SimpleCov::Formatter::RcovFormatter
|
|
end
|
|
|
|
# Add ext/ to the load path so we can load `hermann_lib`
|
|
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../ext/'))
|
|
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib/'))
|
|
|
|
require 'hermann'
|
|
|
|
RSpec.configure do |c|
|
|
c.color = true
|
|
c.formatter = :documentation
|
|
|
|
shared_context 'integration test context', :type => :integration do
|
|
let(:topic) { "hermann_testing" }
|
|
let(:brokers) { $integrationconf['kafka']['brokers'].join(',') }
|
|
let(:zookeepers) { $integrationconf['zookeepers'] }
|
|
end
|
|
end
|
|
|
|
integration_config = File.expand_path(File.dirname(__FILE__) + '/fixtures/integration.yml')
|
|
if File.exists?(integration_config)
|
|
$integrationconf = YAML.load_file(integration_config)
|
|
end
|