Sha256: c9257af994a5b633a8440aeb5cacb4afcd01c4139b3cd672e179b3e6674a3998

Contents?: true

Size: 667 Bytes

Versions: 15

Compression:

Stored size: 667 Bytes

Contents

namespace :test do

  begin
    require "rspec/core/rake_task"
    desc "Run RSpec code examples"
    RSpec::Core::RakeTask.new(:unit) do |t|
      t.pattern = "spec/**/test_*.rb"
      t.rspec_opts = ["--color", "--backtrace"]
    end
  rescue LoadError => ex
    task :unit do
      abort 'rspec is not available.'
    end
  end

  begin
    require 'cucumber'
    require 'cucumber/rake/task'

    Cucumber::Rake::Task.new(:cucumber) do |t|
      t.cucumber_opts = "features --format pretty"
    end
  rescue LoadError => ex
    task :unit do
      abort 'cucumber is not available.'
    end
  end

  task :all => [ :unit, :cucumber ]
end
task :test => :'test:all'

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
finitio-0.7.0 tasks/test.rake
finitio-0.7.0.pre.rc4 tasks/test.rake
finitio-0.7.0.pre.rc3 tasks/test.rake
finitio-0.7.0.pre.rc2 tasks/test.rake
finitio-0.7.0.pre.rc1 tasks/test.rake
finitio-0.6.1 tasks/test.rake
finitio-0.6.0 tasks/test.rake
finitio-0.5.2 tasks/test.rake
finitio-0.5.1 tasks/test.rake
finitio-0.5.0 tasks/test.rake
finitio-0.4.1 tasks/test.rake
finitio-0.4.0 tasks/test.rake
qrb-0.3.0 tasks/test.rake
qrb-0.2.0 tasks/test.rake
qrb-0.1.0 tasks/test.rake