Sha256: 292f02d76f4291be52e4f8c0af3b11108683aff79d99de4d981dfb74c090d096
Contents?: true
Size: 1003 Bytes
Versions: 4
Compression:
Stored size: 1003 Bytes
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 CLEAN << "coverage" task :default => [:test, :features]
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
methadone-0.3.4 | Rakefile |
methadone-0.3.3 | Rakefile |
methadone-0.3.2 | Rakefile |
methadone-0.3.1 | Rakefile |