Sha256: 996b7f9b5193294e26466441e0aea5dfaf877551c3599ddf5e49edb92fa2bfcf

Contents?: true

Size: 1.74 KB

Versions: 20

Compression:

Stored size: 1.74 KB

Contents

require 'rake'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:integration) do |t|
  # excludes unit tests as those involve many iterations
  # and sometimes suffer from obscure interference from integration tests (!)
  t.pattern    = ["spec/higher_level_api/integration", "spec/lower_level_api/integration", "spec/issues"].
    map { |dir| Dir.glob(File.join(dir, "**", "*_spec.rb")) }.reduce(&:+) - ["spec/higher_level_api/integration/tls_connection_spec.rb"]

  t.rspec_opts = "--format progress"
end

RSpec::Core::RakeTask.new(:integration_without_recovery) do |t|
  # same as :integration but excludes client connection recovery tests.
  # useful for sanity checking edge RabbitMQ builds, for instance.
  t.pattern    = ["spec/higher_level_api/integration", "spec/lower_level_api/integration", "spec/issues"].
    map { |dir| Dir.glob(File.join(dir, "**", "*_spec.rb")) }.reduce(&:+) -
    ["spec/higher_level_api/integration/tls_connection_spec.rb",
     "spec/higher_level_api/integration/connection_recovery_spec.rb"]

  t.rspec_opts = "--format progress"
end

RSpec::Core::RakeTask.new(:unit) do |t|
  t.pattern    = Dir.glob("spec/unit/**/*_spec.rb")

  t.rspec_opts = "--format progress --backtrace"
end

RSpec::Core::RakeTask.new(:recovery_integration) do |t|
  # otherwise all examples will be skipped
  ENV.delete("CI")
  t.pattern    = ["spec/higher_level_api/integration/connection_recovery_spec.rb"]

  t.rspec_opts = "--format progress --backtrace"
end

RSpec::Core::RakeTask.new(:stress) do |t|
  # excludes unit tests as those involve many iterations
  # and sometimes suffer from obscure interference from integration tests (!)
  t.pattern    = ["spec/stress/**/*_spec.rb"]

  t.rspec_opts = "--format progress"
end

task :default => :integration

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
bunny-2.13.0 Rakefile
bunny-2.12.1 Rakefile
bunny-2.12.0 Rakefile
bunny-2.12.0.rc1 Rakefile
bunny-2.11.0 Rakefile
bunny-2.11.0.pre1 Rakefile
bunny-2.10.0 Rakefile
bunny-2.9.2 Rakefile
bunny-2.9.1 Rakefile
bunny-2.6.7 Rakefile
bunny-2.7.4 Rakefile
bunny-2.8.1 Rakefile
bunny-2.9.0 Rakefile
bunny-2.7.3 Rakefile
bunny-2.8.0 Rakefile
bunny-2.7.2 Rakefile
bunny-2.7.1 Rakefile
bunny-2.7.0 Rakefile
bunny-2.6.6 Rakefile
bunny-2.6.5 Rakefile