Sha256: 3dae7fc41e14a61188056cddcc61e31e9282e149e82dafbf3e88b831beb7e625

Contents?: true

Size: 711 Bytes

Versions: 1

Compression:

Stored size: 711 Bytes

Contents

require 'bundler/gem_tasks'

require 'rspec/core/rake_task'
require 'cucumber/rake/task'

require File.join(File.dirname(__FILE__), 'test_lib', 'broker_config')

RSpec::Core::RakeTask.new(:spec) do |t|
  t.pattern = "./spec/units{,/*/**}/*_spec.rb"
end

RSpec::Core::RakeTask.new(:integrations) do |t|
  t.rspec_opts = "--tag all_adapters"
  t.pattern = "./spec/integration{,/*/**}/*_spec.rb"
end

cucumber_opts = "--format progress --tag @all_adapters,@#{BrokerConfig.current_adapter} --tag ~@wip"
cucumber_opts += " --tag ~@no_travis" if ENV['TRAVIS']=='true' && ENV['ADAPTER']=='bunny'
Cucumber::Rake::Task.new do |t|
  t.cucumber_opts = cucumber_opts
end

task :default => [:spec, :integrations, :cucumber]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
message-driver-0.1.0 Rakefile