Sha256: 40220af0125ebffb472f64ea4302d47df37f5d2c36b1a8c2bb37f4c4cd3fa790

Contents?: true

Size: 687 Bytes

Versions: 32

Compression:

Stored size: 687 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", "--fail-fast", "--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", "--fail-fast", "--color", "--backtrace", "--format=progress"]
  end
  tests << :integration

  task :all => tests
end

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
bmg-0.17.8 tasks/test.rake
bmg-0.17.7 tasks/test.rake
bmg-0.17.6 tasks/test.rake
bmg-0.17.5 tasks/test.rake
bmg-0.17.4 tasks/test.rake
bmg-0.17.3 tasks/test.rake
bmg-0.17.2 tasks/test.rake
bmg-0.16.7 tasks/test.rake
bmg-0.17.1 tasks/test.rake
bmg-0.17.0 tasks/test.rake
bmg-0.16.6 tasks/test.rake
bmg-0.16.5 tasks/test.rake
bmg-0.16.4 tasks/test.rake
bmg-0.16.3 tasks/test.rake
bmg-0.16.2 tasks/test.rake
bmg-0.16.1 tasks/test.rake
bmg-0.16.0 tasks/test.rake
bmg-0.16.0.pre.rc2 tasks/test.rake
bmg-0.16.0.pre.rc1 tasks/test.rake
bmg-0.15.0 tasks/test.rake