Sha256: 33573f85f29660bb0b7cfb696bab065fb5157df71dba6560b4014434369e6ee1

Contents?: true

Size: 955 Bytes

Versions: 4

Compression:

Stored size: 955 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'

task :default => [:spec, :features]

RSpec::Core::RakeTask.new(:spec) do |t|
  t.rspec_opts = ["--color", "--format", "progress"]
  t.pattern = 'spec/**/*_spec.rb'
  t.rcov = false
end

namespace :spec do
  RSpec::Core::RakeTask.new(:coverage) do |t|
    t.rspec_opts = ["--color", "--format", "progress"]
    t.pattern = 'spec/**/*_spec.rb'
    t.rcov = true
    t.rcov_opts = ['--exclude-only', '".*"', '--include-file', '^lib']
  end
end

begin
  require 'cucumber/rake/task'
  Cucumber::Rake::Task.new(:features)

  task :features
rescue LoadError
  task :features do
    abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
  end
end

begin
  require 'yard'
  YARD::Rake::YardocTask.new
rescue LoadError
  task :yardoc do
    abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cukeq-0.0.1.dev5 Rakefile
cukeq-0.0.1.dev4 Rakefile
cukeq-0.0.1.dev3 Rakefile
cukeq-0.0.1.dev2 Rakefile