Sha256: d3aef4bc5eee811ac7f66474c48489987d155678ca4405f4a7a81021e1500de7
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 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'] 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" task :default => [:test, :features]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
methadone-0.5.1 | Rakefile |
methadone-0.4.1 | Rakefile |
methadone-0.4.0 | Rakefile |