Sha256: 4f20825fa27866914fc8f471b4da4c97347737f93a4dac3759a72b0eea1008a8

Contents?: true

Size: 917 Bytes

Versions: 34

Compression:

Stored size: 917 Bytes

Contents

namespace :test do
  require "rspec/core/rake_task"

  tests = []

  desc "Runs unit tests"
  RSpec::Core::RakeTask.new(:unit) do |t|
    t.pattern = "spec/unit/**/test_*.rb"
    t.rspec_opts = ["-Ilib", "-Ispec/unit", "--color", "--backtrace", "--format=progress"]
  end
  tests << :unit

  desc "Runs integration tests"
  RSpec::Core::RakeTask.new(:integration) do |t|
    t.pattern = "spec/integration/**/test_*.rb"
    t.rspec_opts = ["-Ilib", "-Ispec/integration", "--color", "--backtrace", "--format=progress"]
  end
  tests << :integration

  desc "Runs github regression tests"
  RSpec::Core::RakeTask.new(:regression) do |t|
    t.pattern = "spec/regression/**/test_*.rb"
    t.rspec_opts = ["-Ilib", "-Ispec/regression", "--color", "--backtrace", "--format=progress"]
  end
  tests << :regression

  task :all => tests
end

desc "Runs all tests, unit then integration on examples"
task :test => :'test:all'

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
bmg-0.23.3 tasks/test.rake
bmg-0.23.2 tasks/test.rake
bmg-0.23.1 tasks/test.rake
bmg-0.23.0 tasks/test.rake
bmg-0.21.5 tasks/test.rake
bmg-0.21.4 tasks/test.rake
bmg-0.20.5 tasks/test.rake
bmg-0.19.3 tasks/test.rake
bmg-0.21.3 tasks/test.rake
bmg-0.21.2 tasks/test.rake
bmg-0.21.0 tasks/test.rake
bmg-0.20.4 tasks/test.rake
bmg-0.20.2 tasks/test.rake
bmg-0.20.1 tasks/test.rake
bmg-0.20.0 tasks/test.rake
bmg-0.19.2 tasks/test.rake
bmg-0.19.1 tasks/test.rake
bmg-0.19.0 tasks/test.rake
bmg-0.18.15 tasks/test.rake
bmg-0.18.14 tasks/test.rake