Sha256: dd8fe00125317b45a0fc934bf3fcc2f1a044c2c5bcd787d1460ef5e163cc767b

Contents?: true

Size: 1.28 KB

Versions: 8

Compression:

Stored size: 1.28 KB

Contents

require 'bundler'
require 'rake/clean'
require 'rake/testtask'
gem 'rdoc' # I need to use the installed RDoc gem, not what comes with the system
require 'rdoc/task'
require 'cucumber'
require 'cucumber/rake/task'

include Rake::DSL

Bundler::GemHelper.install_tasks

desc 'run tests'
Rake::TestTask.new do |t|
  t.libs << "lib"
  t.libs << "test"
  t.ruby_opts << "-rrubygems"
  t.test_files = FileList['test/test_*.rb'] + FileList['test/execution_strategy/test_*.rb']
end

desc 'build rdoc'
RDoc::Task.new do |rd|
  rd.main = "README.rdoc"
  rd.generator = 'hanna'
  rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
  rd.title = 'Methadone - Power Up your Command Line Apps'
end

CUKE_RESULTS = 'results.html'
CLEAN << CUKE_RESULTS
Cucumber::Rake::Task.new(:features) do |t|
  tag_opts = ' --tags ~@pending'
  tag_opts = " --tags #{ENV['TAGS']}" if ENV['TAGS']
  t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x -s#{tag_opts}"
  t.fork = false
end

Cucumber::Rake::Task.new('features:wip') do |t|
  tag_opts = ' --tags ~@pending'
  tag_opts = ' --tags @wip'
  t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x -s#{tag_opts}"
  t.fork = false
end

CLEAN << "coverage"
CLOBBER << FileList['**/*.rbc']
task :default => [:test, :features]

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
methadone-1.1.0 Rakefile
methadone-1.0.0 Rakefile
methadone-1.0.0.rc6 Rakefile
methadone-1.0.0.rc5 Rakefile
methadone-1.0.0.rc4 Rakefile
methadone-1.0.0.rc3 Rakefile
methadone-1.0.0.rc2 Rakefile
methadone-1.0.0.rc1 Rakefile